Permalink
Browse files

Minor refactor to use local variable.

  • Loading branch information...
1 parent 9cc460c commit c874d98195d5b79a3032047c068a07af5bf435e9 @markstory markstory committed Mar 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/cache.php
View
@@ -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();
}

0 comments on commit c874d98

Please sign in to comment.