Skip to content

Commit

Permalink
remove 0 limit
Browse files Browse the repository at this point in the history
  • Loading branch information
eather009 committed Feb 25, 2017
1 parent 0ad97a6 commit 83501ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/View/Helper/PaginatorHelper.php
Expand Up @@ -1189,7 +1189,11 @@ public function limitControl(array $limits = [], $default = null, array $options
}

if (empty($limits)) {
$limits += ['0' => __('All'), '20' => '20', '50' => '50', '100' => '100'];
$limits = [
'20' => '20',
'50' => '50',
'100' => '100'
];
}

if (!in_array($default, $limits)) {
Expand Down

0 comments on commit 83501ed

Please sign in to comment.