more pager limits

This commit is contained in:
friendica 2012-06-28 21:39:02 -07:00
parent 43036bee98
commit 7b63e5792a
1 changed files with 2 additions and 0 deletions

View File

@ -434,6 +434,8 @@ 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)
$this->pager['start'] = 1;
$this->pager['total'] = 0;
}