From 8a64dd33e372c426dac2ffdcddae94fff482f9ed Mon Sep 17 00:00:00 2001 From: gwoo Date: Mon, 22 Oct 2007 19:56:21 +0000 Subject: [PATCH] fix to Cache::config() when no params are passed git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5864 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/cache.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cake/libs/cache.php b/cake/libs/cache.php index e7aa2fb67..c1b607a9c 100644 --- a/cake/libs/cache.php +++ b/cake/libs/cache.php @@ -112,7 +112,11 @@ class Cache extends Object { $settings = $_this->__config[$_this->__name]; } else { $name = 'default'; - $settings = $_this->__config['default']; + if(!empty($_this->__config['default'])) { + $settings = $_this->__config['default']; + } else { + $settings = array('engine'=>'File'); + } } $engine = 'File';