From a8a01cfb0750470bdd23337205e591452726f821 Mon Sep 17 00:00:00 2001 From: Git Date: Thu, 7 Jun 2012 08:00:16 +0000 Subject: [PATCH] Empty commit --- classes/script_start.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/script_start.php b/classes/script_start.php index 21952819..b9cb84ac 100644 --- a/classes/script_start.php +++ b/classes/script_start.php @@ -886,8 +886,8 @@ function page_limit($PerPage, $DefaultResult = 1) { error(0); } $Page = $_GET['page']; - if ($Page == 0) { $Page = 1; } - $Limit=$PerPage*$_GET['page']-$PerPage . ', ' . $PerPage; + if ($Page <= 0) { $Page = 1; } + $Limit=$PerPage*$Page-$PerPage . ', ' . $PerPage; } return array($Page,$Limit); }