diff --git a/includes/pager.inc b/includes/pager.inc index 7eb3585b871..c15515589f6 100644 --- a/includes/pager.inc +++ b/includes/pager.inc @@ -170,7 +170,7 @@ function pager_next($text, $limit, $element = 0, $n = 1, $attributes = array()) function pager_last($text, $limit, $element = 0, $attributes = array()) { global $pager_from_array, $pager_total; - $from_new = pager_load_array(($pager_total[$element] - $limit), $element, $pager_from_array); + $from_new = pager_load_array(($pager_total[$element] - ($pager_total[$element] % $limit)), $element, $pager_from_array); if ($from_new[$element] < ($pager_from_array[$element] + $limit)) { return pager_next($text, $limit, $element, 1, $attributes); }