Typo fix in the new default in-process cache; spewed notice warnings on deletion, breaking XHR responses.

This commit is contained in:
Brion Vibber 2010-01-05 09:54:43 -08:00
parent 50185aafbb
commit 16254c14c8
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ class Cache
$success = false;
if (Event::handle('StartCacheDelete', array(&$key, &$success))) {
if (array_key_exists($key, $this->_items[$key])) {
if (array_key_exists($key, $this->_items)) {
unset($this->_items[$key]);
}
$success = true;