don't try to load a null notice into the list
This commit is contained in:
parent
ad1f2aac03
commit
262f864555
@ -690,7 +690,10 @@ class Notice extends Memcached_DataObject
|
|||||||
if (!empty($cache)) {
|
if (!empty($cache)) {
|
||||||
$notices = array();
|
$notices = array();
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
$notices[] = Notice::staticGet('id', $id);
|
$n = Notice::staticGet('id', $id);
|
||||||
|
if (!empty($n)) {
|
||||||
|
$notices[] = $n;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return new ArrayWrapper($notices);
|
return new ArrayWrapper($notices);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user