mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Minor refactor to use local variable.
This commit is contained in:
parent
9cc460ce6d
commit
c874d98195
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ class Cache {
|
|||
if (is_string($settings) && $value !== null) {
|
||||
$settings = array($settings => $value);
|
||||
}
|
||||
$settings = array_merge($self->__config[$self->__name], $settings);
|
||||
$settings = array_merge($self->__config[$name], $settings);
|
||||
if (isset($settings['duration']) && !is_numeric($settings['duration'])) {
|
||||
$settings['duration'] = strtotime($settings['duration']) - time();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue