Skip to content

Commit

Permalink
Fixing drop()
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 21, 2009
1 parent 14d643f commit e3e02bf
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions cake/libs/cache.php
Expand Up @@ -180,18 +180,8 @@ function drop($name) {
if (!isset($self->__config[$name])) {
return false;
}
$last = true;
$engine = $self->__config[$name]['engine'];
unset($self->__config[$name]);
foreach ($self->__config as $name => $settings) {
if ($settings['engine'] == $engine) {
$last = false;
break;
}
}
if ($last) {
unset($self->_Engine[$engine]);
}
unset($self->_engines[$name]);
return true;
}

Expand Down

0 comments on commit e3e02bf

Please sign in to comment.