Only merge the _defaults keys.

This commit is contained in:
euromark 2014-11-05 03:04:48 +01:00
parent dc41a1ff56
commit dc70da9d14

View file

@ -499,7 +499,8 @@ class PaginatorHelper extends AppHelper {
if (!empty($disabledTitle) && $disabledTitle !== true) {
$title = $disabledTitle;
}
$options = (array)$disabledOptions + $options + $_defaults;
$options = (array)$disabledOptions + array_intersect_key($options, array_keys($_defaults)) + $_defaults;
} elseif (!$this->{$check}($options['model'])) {
return '';
}