From 9134865cca583b3742340de42b2bda9381a0beee Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Mon, 31 May 2004 13:02:19 +0000 Subject: [PATCH] Only pop an array if it really is an array. BUG # 963554 --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } } -- 2.20.1