]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't try to load a null notice into the list
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 25 Jun 2009 09:57:16 +0000 (02:57 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 25 Jun 2009 09:57:16 +0000 (02:57 -0700)
classes/Notice.php

index 8689dd427a459a4ede94b25a7bb8830464e6bc15..59ffef91af0196ef25a4254df6924d6f12ef8939 100644 (file)
@@ -690,7 +690,10 @@ class Notice extends Memcached_DataObject
         if (!empty($cache)) {
             $notices = array();
             foreach ($ids as $id) {
-                $notices[] = Notice::staticGet('id', $id);
+                $n = Notice::staticGet('id', $id);
+                if (!empty($n)) {
+                    $notices[] = $n;
+                }
             }
             return new ArrayWrapper($notices);
         } else {