From f66128505d28e4d257388809c50e7897391a755a Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Fri, 3 Feb 2006 18:22:53 +0000 Subject: [PATCH] Fix for parser test "A table with no data" --- includes/Parser.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/Parser.php b/includes/Parser.php index 2b89d92679..c45ce68a96 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -710,6 +710,7 @@ class Parser $l = array_pop ( $ltd ) ; if ( array_pop ( $tr ) ) $z = '' . $z ; if ( array_pop ( $td ) ) $z = '' . $z ; + if ( $l == "" ) $z = "" . $z ; array_pop ( $ltr ) ; $t[$k] = $z . str_repeat( '', $indent_level ); } @@ -781,6 +782,8 @@ class Parser # Closing open td, tr && table while ( count ( $td ) > 0 ) { + $l = array_pop ( $ltd ) ; + if ( $l == "" ) $t[] = "" ; if ( array_pop ( $td ) ) $t[] = '' ; if ( array_pop ( $tr ) ) $t[] = '' ; $t[] = '' ; -- 2.20.1