Fix fixme placed on r30022 by me (fixing per comment)
authorSam Reed <reedy@users.mediawiki.org>
Tue, 10 Aug 2010 12:55:22 +0000 (12:55 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 10 Aug 2010 12:55:22 +0000 (12:55 +0000)
Adding a few braces too

includes/parser/Preprocessor_DOM.php

index c13b033..ae33901 100644 (file)
@@ -1136,7 +1136,9 @@ class PPFrame_DOM implements PPFrame {
                $first = true;
                $s = '';
                foreach ( $args as $root ) {
-                       if ( $root instanceof PPNode_DOM ) $root = $root->node;
+                       if ( $root instanceof PPNode_DOM ) {
+                               $root = $root->node;
+                       }
                        if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) {
                                $root = array( $root );
                        }
@@ -1160,9 +1162,11 @@ class PPFrame_DOM implements PPFrame {
                $args = array_slice( func_get_args(), 1 );
                $out = array();
                $first = true;
-               if ( $root instanceof PPNode_DOM ) $root = $root->node;
 
                foreach ( $args as $root ) {
+                       if ( $root instanceof PPNode_DOM ) {
+                               $root = $root->node;
+                       }
                        if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) {
                                $root = array( $root );
                        }
@@ -1187,7 +1191,9 @@ class PPFrame_DOM implements PPFrame {
                $first = true;
 
                foreach ( $args as $root ) {
-                       if ( $root instanceof PPNode_DOM ) $root = $root->node;
+                       if ( $root instanceof PPNode_DOM ) {
+                               $root = $root->node;
+                       }
                        if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) {
                                $root = array( $root );
                        }