--- a/includes/pageutils.php Wed Jul 02 19:36:44 2008 -0400
+++ b/includes/pageutils.php Wed Jul 02 22:15:55 2008 -0400
@@ -1307,7 +1307,7 @@
}
$db->free_result();
$cat_all = Array();
- for($i=0;$i<sizeof($paths->pages)/2;$i++)
+ foreach ( $paths->pages as $i => $_ )
{
if($paths->pages[$i]['namespace']=='Category') $cat_all[] = $paths->pages[$i];
}
@@ -1383,7 +1383,7 @@
$page_data =& $paths->pages[$paths->nslist[$namespace].$page_id];
$cat_all = Array();
- for($i=0;$i<sizeof($paths->pages)/2;$i++)
+ foreach ( $paths->pages as $i => $_ )
{
if($paths->pages[$i]['namespace']=='Category') $cat_all[] = $paths->pages[$i];
}