]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Typo fix in the new default in-process cache; spewed notice warnings on deletion...
authorBrion Vibber <brion@pobox.com>
Tue, 5 Jan 2010 17:54:43 +0000 (09:54 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 5 Jan 2010 17:54:43 +0000 (09:54 -0800)
lib/cache.php

index bac3499e5eed563b116c8b86a686b434cbaa72cb..85e8badc174313ca3b735199f24290a1fc571294 100644 (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;