Don't explode if we fail to load a listed attachment id in Notice::attachments()
This commit is contained in:
parent
cbcb9b0080
commit
0ef422593b
@ -578,9 +578,11 @@ class Notice extends Memcached_DataObject
|
||||
if ($f2p->find()) {
|
||||
while ($f2p->fetch()) {
|
||||
$f = File::staticGet($f2p->file_id);
|
||||
if ($f) {
|
||||
$att[] = clone($f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $att;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user