diff --git a/View/Helper/DisplayNumberHelper.php b/View/Helper/DisplayNumberHelper.php index 46aaf653..fc7a3386 100644 --- a/View/Helper/DisplayNumberHelper.php +++ b/View/Helper/DisplayNumberHelper.php @@ -168,8 +168,9 @@ public function dropDownToggle($attributes = array()) { unset($attributes['unit']); } - if (! isset($attributes['currentLimit'])) { - $attributes['currentLimit'] = $this->_View->Paginator->param('limit'); + $currentLimit = $this->_View->Paginator->param('limit'); + if ($currentLimit) { + $attributes['currentLimit'] = $currentLimit; } if (! isset($attributes['url'])) {