From: Leo Koppelkamm Date: Wed, 13 Apr 2011 12:44:33 +0000 (+0000) Subject: Followup to r85922: Output th instead of td for tfoot X-Git-Tag: 1.31.0-rc.0~30876 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=1c0a4d36110abfc7e21da6fc95298236fba9fbc1;p=lhc%2Fweb%2Fwiklou.git Followup to r85922: Output th instead of td for tfoot --- 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'; } }