From: Sam Reed Date: Tue, 10 Aug 2010 12:55:22 +0000 (+0000) Subject: Fix fixme placed on r30022 by me (fixing per comment) X-Git-Tag: 1.31.0-rc.0~35566 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=55d5a6c9a2df23057d9f194b56abc42033847a55;p=lhc%2Fweb%2Fwiklou.git Fix fixme placed on r30022 by me (fixing per comment) Adding a few braces too --- 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 ); }