]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Uninitialized value for attachments
authorEvan Prodromou <evan@status.net>
Thu, 7 Apr 2011 14:25:53 +0000 (10:25 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 7 Apr 2011 14:25:53 +0000 (10:25 -0400)
classes/Notice.php

index 6ca4c711fd21b632d620ca5d56ccb223b2ba1d6e..363e52dbdd4ac6ab2c2abb62f9624810fed77d78 100644 (file)
@@ -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()) {