Skip to content

Commit

Permalink
Minor refactor to use local variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 9, 2010
1 parent 9cc460c commit c874d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/cache.php
Expand Up @@ -234,7 +234,7 @@ function set($settings = array(), $value = null) {
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();
}
Expand Down

0 comments on commit c874d98

Please sign in to comment.