File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1052,16 +1052,12 @@ protected function processReference(DOMElement $ref): bool
10521052 $ includeCommentNodes = false ;
10531053
10541054 $ xp = XP ::getXPath ($ ref ->ownerDocument );
1055- if (!empty ($ this ->idNS ) && is_array ($ this ->idNS )) {
1056- foreach ($ this ->idNS as $ nspf => $ ns ) {
1057- $ xp ->registerNamespace ($ nspf , $ ns );
1058- }
1055+ foreach ($ this ->idNS as $ nspf => $ ns ) {
1056+ $ xp ->registerNamespace ($ nspf , $ ns );
10591057 }
10601058 $ iDlist = '@Id=" ' . $ identifier . '" ' ;
1061- if (is_array ($ this ->idKeys )) {
1062- foreach ($ this ->idKeys as $ idKey ) {
1063- $ iDlist .= " or @ $ idKey=' $ identifier' " ;
1064- }
1059+ foreach ($ this ->idKeys as $ idKey ) {
1060+ $ iDlist .= " or @ $ idKey=' $ identifier' " ;
10651061 }
10661062 $ query = '//*[ ' . $ iDlist . '] ' ;
10671063 $ dataObject = $ xp ->query ($ query )->item (0 );
You can’t perform that action at this time.
0 commit comments