From 7b63e5792add647ad2156d81c52f40a33e0faef6 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 28 Jun 2012 21:39:02 -0700 Subject: [PATCH] more pager limits --- boot.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot.php b/boot.php index 231f42a14..973e3578a 100644 --- a/boot.php +++ b/boot.php @@ -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; }