From 55d5a6c9a2df23057d9f194b56abc42033847a55 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 10 Aug 2010 12:55:22 +0000 Subject: [PATCH] Fix fixme placed on r30022 by me (fixing per comment) Adding a few braces too --- includes/parser/Preprocessor_DOM.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index c13b033d96..ae33901146 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -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 ); } -- 2.20.1