From: Jens Frank Date: Sun, 22 Aug 2004 07:22:13 +0000 (+0000) Subject: Fix notice regarding invalid array index -1 X-Git-Tag: 1.5.0alpha1~2260 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=d2898257889efb5df83c37f125c1d959e2e8461f;p=lhc%2Fweb%2Fwiklou.git Fix notice regarding invalid array index -1 --- diff --git a/includes/Parser.php b/includes/Parser.php index 05be44f519..79c9c1eec2 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -609,8 +609,9 @@ class Parser $index++ ) { // check for change of starting letter or begging of chunk - if ( ($articles_start_char[$index] != $articles_start_char[$index - 1]) - || ($index == $startChunk) ) + if ( ($index == $startChunk) || + ($articles_start_char[$index] != $articles_start_char[$index - 1]) ) + { $r .= "

{$articles_start_char[$index]}

\n