aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index 1013c3aad..0646461a5 100644
--- a/index.php
+++ b/index.php
@@ -39,6 +39,10 @@ if (isset($page['category']))
{
check_restrictions($page['category']['id']);
}
+if ($page['start']>0 && $page['start']>=count($page['items']))
+{
+ page_not_found('', duplicate_index_url(array('start'=>0)));
+}
trigger_action('loc_begin_index');