From d2898257889efb5df83c37f125c1d959e2e8461f Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sun, 22 Aug 2004 07:22:13 +0000 Subject: [PATCH] Fix notice regarding invalid array index -1 --- includes/Parser.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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