aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_category.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 53f98a5c2..26c9478ef 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -103,6 +103,8 @@ WHERE '.$where.'
while ($row = mysql_fetch_assoc($result))
{
array_push($cats, $row);
+ if ($row['id']==@$page['category']['id']) //save the number of subcats for later optim
+ $page['category']['count_categories'] = $row['count_categories'];
}
usort($cats, 'global_rank_compare');