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
This commit is contained in:
gwoo 2007-10-22 19:56:21 +00:00
parent 5a270f2220
commit 8a64dd33e3

View file

@ -112,7 +112,11 @@ class Cache extends Object {
$settings = $_this->__config[$_this->__name];
} else {
$name = 'default';
if(!empty($_this->__config['default'])) {
$settings = $_this->__config['default'];
} else {
$settings = array('engine'=>'File');
}
}
$engine = 'File';