aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/section_init.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index 25712a0bb..dc58b9a2e 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -319,7 +319,8 @@ SELECT DISTINCT(image_id)
} //otherwise the calendar will requery all subitems
// GET CATEGORIES LIST
- if ( 0==$page['start']
+ if ( script_basename()=='index'
+ and 0==$page['start']
and !isset($page['flat'])
and !isset($page['chronology_field'])
and ('recent_cats'==$page['section'] or 'categories'==$page['section'])