]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Array needs initializing before it's returned. How did this code ever work?
authorZach Copley <zach@controlyourself.ca>
Thu, 11 Dec 2008 02:25:57 +0000 (21:25 -0500)
committerZach Copley <zach@controlyourself.ca>
Thu, 11 Dec 2008 02:25:57 +0000 (21:25 -0500)
darcs-hash:20081211022557-7b5ce-8040947f258db638bd68fe2620381b3c078a4c31.gz

actions/favoritesrss.php

index 553d28c00e2bc1f33092fee33a14b8b9ae21ffe3..25dd3861fa29fed97076d0bcad6974bd5ffc0e18 100644 (file)
@@ -40,11 +40,13 @@ class FavoritesrssAction extends Rss10Action {
        }
 
        function get_notices($limit=0) {
-               
+
                $user = $this->user;
-               
+
                $notice = $user->favoriteNotices(0, $limit);
-                                                                                       
+
+               $notices = array();
+
                while ($notice->fetch()) {
                        $notices[] = clone($notice);
                }