Commit d3cea2c4 authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "Only display the pager when needed (bug #800943)"

parents 6a9001ef 59359229
......@@ -2950,7 +2950,7 @@ function build_pagination($params) {
}
$output .= '">';
if ($params['limit'] && ($params['limit'] <= $params['count'])) {
if ($params['limit'] && ($params['limit'] < $params['count'])) {
$pages = ceil($params['count'] / $params['limit']);
$page = $params['offset'] / $params['limit'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment