From: Jens Frank Date: Mon, 31 May 2004 13:02:19 +0000 (+0000) Subject: Only pop an array if it really is an array. BUG # 963554 X-Git-Tag: 1.5.0alpha1~3113 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=9134865cca583b3742340de42b2bda9381a0beee;p=lhc%2Fweb%2Fwiklou.git Only pop an array if it really is an array. BUG # 963554 --- diff --git a/includes/Parser.php b/includes/Parser.php index 50f02685e6..2dc092b478 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1573,7 +1573,7 @@ class Parser $text .= "<" . str_replace( ">", ">", $x); } # Close off any remaining tags - while ( $t = array_pop( $tagstack ) ) { + while ( is_array( $tagstack ) && ($t = array_pop( $tagstack )) ) { $text .= "\n"; if ( $t == "table" ) { $tagstack = array_pop( $tablestack ); } }