From 466e8d1ed1aaeefe659c08d49355166c1bfb8375 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 10 Dec 2008 21:25:57 -0500 Subject: [PATCH] Array needs initializing before it's returned. How did this code ever work? darcs-hash:20081211022557-7b5ce-8040947f258db638bd68fe2620381b3c078a4c31.gz --- actions/favoritesrss.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); }