Skip to content

Commit

Permalink
fixing cache error
Browse files Browse the repository at this point in the history
  • Loading branch information
gwoo committed Aug 3, 2009
1 parent 47d50b1 commit b2f7cd5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cake/libs/cache.php
Expand Up @@ -136,8 +136,8 @@ function config($name = null, $settings = array()) {
return false;
}
$settings = $_this->__config[$name] = $_this->settings($engine);
} else {
$settings = $_this->__config[$name] = $_this->set($_this->__config[$name]);
} else if ($settings = $_this->set($_this->__config[$name])) {
$_this->__config[$name] = $settings;
}
return compact('engine', 'settings');
}
Expand Down Expand Up @@ -188,7 +188,6 @@ function set($settings = array(), $value = null) {
}

$engine = $_this->__config[$_this->__name]['engine'];

if (!empty($settings)) {
$_this->__reset = true;
}
Expand Down

0 comments on commit b2f7cd5

Please sign in to comment.