From: Evan Prodromou Date: Sun, 28 Sep 2008 17:35:58 +0000 (-0400) Subject: exact check on memcached results X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4bea5b60a06e4177a62654cb850d67cd2adcfeed;p=quix0rs-gnu-social.git exact check on memcached results darcs-hash:20080928173558-5ed1f-0949a60e3c7edb9ad58f818c3121896637033abe.gz --- diff --git a/classes/Notice.php b/classes/Notice.php index abe127966f..76d6d801e4 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -263,7 +263,7 @@ class Notice extends Memcached_DataObject # On a cache hit, return a DB-object-like wrapper - if ($notices) { + if ($notices !== FALSE) { common_debug('Notices hit: ' . print_r($notices, TRUE)); common_debug('Got this many notices: ' . count($notices)); $wrapper = new NoticeWrapper(array_slice($notices, $offset, $limit));