pagination start off by one
This commit is contained in:
2
boot.php
2
boot.php
@@ -442,7 +442,7 @@ if(! class_exists('App')) {
|
||||
$this->pager['page'] = ((x($_GET,'page') && intval($_GET['page']) > 0) ? intval($_GET['page']) : 1);
|
||||
$this->pager['itemspage'] = 50;
|
||||
$this->pager['start'] = ($this->pager['page'] * $this->pager['itemspage']) - $this->pager['itemspage'];
|
||||
if($this->pager['start'] < 1)
|
||||
if($this->pager['start'] < 0)
|
||||
$this->pager['start'] = 1;
|
||||
$this->pager['total'] = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user