Index: trunk/phase3/includes/parser/Preprocessor_DOM.php |
— | — | @@ -1136,7 +1136,9 @@ |
1137 | 1137 | $first = true; |
1138 | 1138 | $s = ''; |
1139 | 1139 | foreach ( $args as $root ) { |
1140 | | - if ( $root instanceof PPNode_DOM ) $root = $root->node; |
| 1140 | + if ( $root instanceof PPNode_DOM ) { |
| 1141 | + $root = $root->node; |
| 1142 | + } |
1141 | 1143 | if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) { |
1142 | 1144 | $root = array( $root ); |
1143 | 1145 | } |
— | — | @@ -1160,9 +1162,11 @@ |
1161 | 1163 | $args = array_slice( func_get_args(), 1 ); |
1162 | 1164 | $out = array(); |
1163 | 1165 | $first = true; |
1164 | | - if ( $root instanceof PPNode_DOM ) $root = $root->node; |
1165 | 1166 | |
1166 | 1167 | foreach ( $args as $root ) { |
| 1168 | + if ( $root instanceof PPNode_DOM ) { |
| 1169 | + $root = $root->node; |
| 1170 | + } |
1167 | 1171 | if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) { |
1168 | 1172 | $root = array( $root ); |
1169 | 1173 | } |
— | — | @@ -1187,7 +1191,9 @@ |
1188 | 1192 | $first = true; |
1189 | 1193 | |
1190 | 1194 | foreach ( $args as $root ) { |
1191 | | - if ( $root instanceof PPNode_DOM ) $root = $root->node; |
| 1195 | + if ( $root instanceof PPNode_DOM ) { |
| 1196 | + $root = $root->node; |
| 1197 | + } |
1192 | 1198 | if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) { |
1193 | 1199 | $root = array( $root ); |
1194 | 1200 | } |