]> git.mxchange.org Git - friendica.git/commitdiff
more pager limits
authorfriendica <info@friendica.com>
Fri, 29 Jun 2012 04:39:02 +0000 (21:39 -0700)
committerfriendica <info@friendica.com>
Fri, 29 Jun 2012 04:39:02 +0000 (21:39 -0700)
boot.php

index 231f42a14c2223fe025f514014d4b1142c757672..973e3578a66804c1f4fd7aea2819b73a6aaac5b4 100644 (file)
--- 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;
                }