From 1c0a4d36110abfc7e21da6fc95298236fba9fbc1 Mon Sep 17 00:00:00 2001 From: Leo Koppelkamm Date: Wed, 13 Apr 2011 12:44:33 +0000 Subject: [PATCH] Followup to r85922: Output th instead of td for tfoot --- includes/parser/Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index d07acef213..73762b526d 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -829,7 +829,7 @@ class Parser { foreach ( $lines as $outLine ) { $line = trim( $outLine ); - if ( $line == '') { //empty line, go to next line + if ( $line === '') { //empty line, go to next line $out .= $outLine."\n"; continue; } @@ -869,7 +869,7 @@ class Parser { if ( isset($last_row['type'] ) && $last_row['type'] == 'thead' && isset($table[1])) { $last_row['type'] = 'tfoot'; for($i = 0; isset($last_row[$i]); $i++ ) { - $last_row[$i]['type'] = 'td'; + $last_row[$i]['type'] = 'th'; } } -- 2.20.1