From c874d98195d5b79a3032047c068a07af5bf435e9 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Mon, 8 Mar 2010 22:48:39 -0500 Subject: [PATCH] Minor refactor to use local variable. --- cake/libs/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/cache.php b/cake/libs/cache.php index b8d26c4eb..a0c448d4d 100644 --- a/cake/libs/cache.php +++ b/cake/libs/cache.php @@ -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(); }