From: Zach Copley Date: Thu, 11 Dec 2008 02:25:57 +0000 (-0500) Subject: Array needs initializing before it's returned. How did this code ever work? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=466e8d1ed1aaeefe659c08d49355166c1bfb8375;p=quix0rs-gnu-social.git Array needs initializing before it's returned. How did this code ever work? darcs-hash:20081211022557-7b5ce-8040947f258db638bd68fe2620381b3c078a4c31.gz --- diff --git a/actions/favoritesrss.php b/actions/favoritesrss.php index 553d28c00e..25dd3861fa 100644 --- a/actions/favoritesrss.php +++ b/actions/favoritesrss.php @@ -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); }