Index: trunk/phase3/includes/Parser.php |
— | — | @@ -1858,10 +1858,9 @@ |
1859 | 1859 | $nsec = 0; |
1860 | 1860 | for( $i = 0; $i < count($matches); $i += 2 ) { |
1861 | 1861 | wfDebug("text=[".$matches[$i]."] heading=[".$matches[$i+1]."]\n"); |
1862 | | - if ($matches[$i] == "" && $matches[$i + 1] == "") break; |
1863 | 1862 | $text .= $matches[$i]; |
| 1863 | + if (!isset($matches[$i + 1]) || $matches[$i + 1] == "") continue; |
1864 | 1864 | $hl = $matches[$i + 1]; |
1865 | | - if ($hl == "") continue; |
1866 | 1865 | if( strstr($hl, "<!--MWTEMPLATESECTION") ) { |
1867 | 1866 | $text .= $hl; |
1868 | 1867 | continue; |