Browse Source

fix pagination start value

pull/1/head
ghost 3 years ago
parent
commit
65f88f08b4
  1. 6
      public/index.php

6
public/index.php

@ -32,7 +32,11 @@ if (SEF_MODE && isset($_SERVER['QUERY_STRING'])) {
} }
} }
$limit = PAGE_LIMIT * $page; if ($page > 1) {
$limit = PAGE_LIMIT * $page - PAGE_LIMIT;
} else {
$limit = PAGE_LIMIT * $page;
}
$db = new MySQL(); $db = new MySQL();

Loading…
Cancel
Save