@@ -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 | /** |