From 6b87eb00771b6954b6a15771f1e8834ec72bc8e2 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Tue, 1 Jun 2004 07:25:48 +0000 Subject: [PATCH] table handling fix and notice silencing instead of buggy checking in the html strip function --- includes/Parser.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 0368d25c81..f3b0fc66fa 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1089,10 +1089,10 @@ class Parser # No prefix (not in list)--go to paragraph mode $uniq_prefix = UNIQ_PREFIX; // XXX: use a stack for nestable elements like span, table and div - $openmatch = preg_match("/(closeParagraph(); @@ -1536,8 +1536,8 @@ class Parser if ( $slash ) { # Closing a tag... if ( ! in_array( $t, $htmlsingle ) && - ( count($tagstack) && $ot = array_pop( $tagstack ) ) != $t ) { - if(!empty($ot)) array_push( $tagstack, $ot ); + ( $ot = @array_pop( $tagstack ) ) != $t ) { + @array_push( $tagstack, $ot ); $badtag = 1; } else { if ( $t == "table" ) { -- 2.20.1