]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
exact check on memcached results
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 28 Sep 2008 17:35:58 +0000 (13:35 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 28 Sep 2008 17:35:58 +0000 (13:35 -0400)
darcs-hash:20080928173558-5ed1f-0949a60e3c7edb9ad58f818c3121896637033abe.gz

classes/Notice.php

index abe127966fa9e58087e406f5d6cd42bc1a9b7cbc..76d6d801e449319dc90e674e3f47bd1f4b653419 100644 (file)
@@ -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));