mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Only merge the _defaults keys.
This commit is contained in:
parent
dc41a1ff56
commit
dc70da9d14
1 changed files with 2 additions and 1 deletions
|
@ -499,7 +499,8 @@ class PaginatorHelper extends AppHelper {
|
||||||
if (!empty($disabledTitle) && $disabledTitle !== true) {
|
if (!empty($disabledTitle) && $disabledTitle !== true) {
|
||||||
$title = $disabledTitle;
|
$title = $disabledTitle;
|
||||||
}
|
}
|
||||||
$options = (array)$disabledOptions + $options + $_defaults;
|
|
||||||
|
$options = (array)$disabledOptions + array_intersect_key($options, array_keys($_defaults)) + $_defaults;
|
||||||
} elseif (!$this->{$check}($options['model'])) {
|
} elseif (!$this->{$check}($options['model'])) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue