@@ -51,7 +51,7 @@ |
||
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Builds the query string to add to the URL |
| 54 | - * @param mixed $page If the page variable is set to a number will add the page number to the query string else will not add any additional items |
|
| 54 | + * @param string $page If the page variable is set to a number will add the page number to the query string else will not add any additional items |
|
| 55 | 55 | * @return string The complete string will be returned to add to the link item |
| 56 | 56 | */ |
| 57 | 57 | protected function buildQueryString($page) { |
@@ -74,10 +74,8 @@ |
||
| 74 | 74 | self::$page = (self::$current > $show ? (self::$current - $show) : 1); |
| 75 | 75 | if (self::$current < (self::$lastpage - $show)) { |
| 76 | 76 | self::$lastpage = ((self::$current <= $show) ? (self::$current + ($numpages - self::$current)) : (self::$current + $show)); |
| 77 | - } |
|
| 78 | - else { self::$page = self::$current - ($numpages - ((ceil($records / $maxshown) - self::$current)) - 1); } |
|
| 79 | - } |
|
| 80 | - else { self::$page = 1; } |
|
| 77 | + } else { self::$page = self::$current - ($numpages - ((ceil($records / $maxshown) - self::$current)) - 1); } |
|
| 78 | + } else { self::$page = 1; } |
|
| 81 | 79 | } |
| 82 | 80 | |
| 83 | 81 | /** |