exact check on memcached results

darcs-hash:20080928173558-5ed1f-0949a60e3c7edb9ad58f818c3121896637033abe.gz
This commit is contained in:
Evan Prodromou 2008-09-28 13:35:58 -04:00
parent 577ee0c115
commit 4bea5b60a0

View File

@ -263,7 +263,7 @@ class Notice extends Memcached_DataObject
# On a cache hit, return a DB-object-like wrapper # 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('Notices hit: ' . print_r($notices, TRUE));
common_debug('Got this many notices: ' . count($notices)); common_debug('Got this many notices: ' . count($notices));
$wrapper = new NoticeWrapper(array_slice($notices, $offset, $limit)); $wrapper = new NoticeWrapper(array_slice($notices, $offset, $limit));