fixed warning on category pages. changing order of conditions ensures that $index...
authorJens Frank <jeluf@users.mediawiki.org>
Fri, 10 Sep 2004 00:31:55 +0000 (00:31 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Fri, 10 Sep 2004 00:31:55 +0000 (00:31 +0000)
includes/CategoryPage.php

index e7b728d..5070c1b 100644 (file)
@@ -191,8 +191,8 @@ class CategoryPage extends Article {
                                                 $index++ )
                                         {
                                                 // check for change of starting letter or begging of chunk
-                                                if ( ($children_start_char[$index] != $children_start_char[$index - 1])
-                                                        || ($index == $startChunk) )
+                                                if ( ($index == $startChunk)
+                                                       || ($children_start_char[$index] != $children_start_char[$index - 1]) )
                                                 {
                                                         $r .= "</ul><h3>{$children_start_char[$index]}</h3>\n<ul>";
                                                 }