|
@@ -173,10 +173,8 @@ |
|
|
block discarded – undo |
|
173
|
173
|
self::$page = (self::$current > $show ? (self::$current - $show) : 1); |
|
174
|
174
|
if (self::$current < (self::$lastpage - $show)) { |
|
175
|
175
|
self::$lastpage = ((self::$current <= $show) ? (self::$current + ($numpages - self::$current)) : (self::$current + $show)); |
|
176
|
|
- } |
|
177
|
|
- else { self::$page = self::$current - ($numpages - ((ceil(intval($records) / ($maxshown >= 1 ? intval($maxshown) : 1)) - self::$current)) - 1); } |
|
178
|
|
- } |
|
179
|
|
- else { self::$page = 1; } |
|
|
176
|
+ } else { self::$page = self::$current - ($numpages - ((ceil(intval($records) / ($maxshown >= 1 ? intval($maxshown) : 1)) - self::$current)) - 1); } |
|
|
177
|
+ } else { self::$page = 1; } |
|
180
|
178
|
} |
|
181
|
179
|
|
|
182
|
180
|
/** |
Please login to merge, or discard this patch.