Fix PHP notice in r85922. Sorry for the holdup, I kinda forgot about it
authorLeo Koppelkamm <diebuche@users.mediawiki.org>
Thu, 5 May 2011 09:12:55 +0000 (09:12 +0000)
committerLeo Koppelkamm <diebuche@users.mediawiki.org>
Thu, 5 May 2011 09:12:55 +0000 (09:12 +0000)
includes/parser/Parser.php

index 7204e0e..f139168 100644 (file)
@@ -1085,7 +1085,7 @@ class Parser {
                        }
                        $return .= "\n</tr>";
 
-                       if ( ( !isset( $table[$i + 1] ) && !$simple ) || ( isset( $table[$i + 1] ) && ( $table[$i]['type'] != $table[$i + 1]['type'] ) ) ) {
+                       if ( ( !isset( $table[$i + 1] ) && !$simple ) || ( isset( $table[$i + 1] ) && isset( $table[$i + 1]['type'] ) && $table[$i]['type'] != $table[$i + 1]['type'] ) ) {
                                $return .= '</' . $table[$i]['type'] . '>';
                        }
                        $lastSection = $table[$i]['type'];