From: Evan Prodromou Date: Thu, 25 Jun 2009 09:57:16 +0000 (-0700) Subject: don't try to load a null notice into the list X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=262f864555dcad18fbdd044f753584dae5729e86;p=quix0rs-gnu-social.git don't try to load a null notice into the list --- diff --git a/classes/Notice.php b/classes/Notice.php index 8689dd427a..59ffef91af 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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 {