From: Evan Prodromou Date: Thu, 7 Apr 2011 14:25:53 +0000 (-0400) Subject: Uninitialized value for attachments X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a0f67b773c0c3fe7c3642730fdb184f288ba45d;p=quix0rs-gnu-social.git Uninitialized value for attachments --- diff --git a/classes/Notice.php b/classes/Notice.php index 6ca4c711fd..363e52dbdd 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -727,6 +727,7 @@ class Notice extends Memcached_DataObject if ($idstr !== false) { $ids = explode(',', $idstr); } else { + $ids = array(); $f2p = new File_to_post; $f2p->post_id = $this->id; if ($f2p->find()) {