Fix notice regarding invalid array index -1
authorJens Frank <jeluf@users.mediawiki.org>
Sun, 22 Aug 2004 07:22:13 +0000 (07:22 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sun, 22 Aug 2004 07:22:13 +0000 (07:22 +0000)
includes/Parser.php

index 05be44f..79c9c1e 100644 (file)
@@ -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 .= "</ul><h3>{$articles_start_char[$index]}</h3>\n<ul>";
                                        }