Index: branches/REL1_3/phase3/includes/Parser.php |
— | — | @@ -1850,8 +1850,8 @@ |
1851 | 1851 | for( $i = 0; $i < count($matches); $i += 2 ) { |
1852 | 1852 | if ($matches[$i] == "" && $matches[$i + 1] == "") break; |
1853 | 1853 | $text .= $matches[$i]; |
| 1854 | + if (!isset($matches[$i + 1]) || $matches[$i + 1] == "") continue; |
1854 | 1855 | $hl = $matches[$i + 1]; |
1855 | | - if( $hl == "" ) continue; |
1856 | 1856 | if( strstr($hl, "<!--MWTEMPLATESECTION") ) { |
1857 | 1857 | $text .= $hl; |
1858 | 1858 | continue; |