From: Brion Vibber Date: Tue, 5 Jan 2010 17:54:43 +0000 (-0800) Subject: Typo fix in the new default in-process cache; spewed notice warnings on deletion... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=16254c14c8984f457b13c32d2b9bc0baedfde448;p=quix0rs-gnu-social.git Typo fix in the new default in-process cache; spewed notice warnings on deletion, breaking XHR responses. --- diff --git a/lib/cache.php b/lib/cache.php index bac3499e5e..85e8badc17 100644 --- a/lib/cache.php +++ b/lib/cache.php @@ -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;