]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check for since=0 in Notice::stream()
authorEvan Prodromou <evan@controlyourself.ca>
Sat, 30 May 2009 04:49:14 +0000 (00:49 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sat, 30 May 2009 04:49:14 +0000 (00:49 -0400)
classes/Notice.php

index 3f6c5cebbeacf1451c45aaa291e2ef2917326c33..3a90d18b4737d0749054ee270b147cddb5ca8cb7 100644 (file)
@@ -1003,7 +1003,7 @@ class Notice extends Memcached_DataObject
         $cache = common_memcache();
 
         if (empty($cache) ||
-            $since_id != 0 || $max_id != 0 || !is_null($since) ||
+            $since_id != 0 || $max_id != 0 || (!is_null($since) && $since > 0) ||
             ($offset + $limit) > NOTICE_CACHE_WINDOW) {
             return call_user_func_array($fn, array_merge($args, array($offset, $limit, $since_id,
                                                                       $max_id, $since)));