summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-25 02:57:16 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-25 02:57:16 -0700
commit262f864555dcad18fbdd044f753584dae5729e86 (patch)
tree6adcd52a4a26a6719adb6fe23fa8b0b084cbcc37 /classes/Notice.php
parentad1f2aac0303cad38f043b28048b1adfa1cbc288 (diff)
don't try to load a null notice into the list
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 8689dd427..59ffef91a 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 {