Minor refactor to use local variable.

This commit is contained in:
Mark Story 2010-03-08 22:48:39 -05:00
parent 9cc460ce6d
commit c874d98195

View file

@ -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();
}