From a1c7efaeeb6f5f5069a223345971ea5d9d07348c Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Fri, 10 Sep 2004 00:31:55 +0000 Subject: [PATCH] fixed warning on category pages. changing order of conditions ensures that $index-1 is a valid index --- includes/CategoryPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index e7b728db5d..5070c1bde7 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -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 .= "

{$children_start_char[$index]}

\n