Uninitialized value for attachments

This commit is contained in:
Evan Prodromou 2011-04-07 10:25:53 -04:00
parent ca0f59d46a
commit 8a0f67b773

View File

@ -727,6 +727,7 @@ class Notice extends Memcached_DataObject
if ($idstr !== false) { if ($idstr !== false) {
$ids = explode(',', $idstr); $ids = explode(',', $idstr);
} else { } else {
$ids = array();
$f2p = new File_to_post; $f2p = new File_to_post;
$f2p->post_id = $this->id; $f2p->post_id = $this->id;
if ($f2p->find()) { if ($f2p->find()) {