diff --git a/public/index.php b/public/index.php index 7761b0c..287cf2e 100755 --- a/public/index.php +++ b/public/index.php @@ -32,7 +32,11 @@ if (SEF_MODE && isset($_SERVER['QUERY_STRING'])) { } } -$limit = PAGE_LIMIT * $page; +if ($page > 0) { + $limit = PAGE_LIMIT * $page - PAGE_LIMIT; +} else { + $limit = PAGE_LIMIT * $page; +} $db = new MySQL();