summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2008-12-10 21:25:57 -0500
committerZach Copley <zach@controlyourself.ca>2008-12-10 21:25:57 -0500
commit466e8d1ed1aaeefe659c08d49355166c1bfb8375 (patch)
treed2171df99d08f04549652cbac2d2f9e1fe596343
parent06f99d4b55f7542bb27930e46ff99785e6dda823 (diff)
Array needs initializing before it's returned. How did this code ever work?
darcs-hash:20081211022557-7b5ce-8040947f258db638bd68fe2620381b3c078a4c31.gz
-rw-r--r--actions/favoritesrss.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/actions/favoritesrss.php b/actions/favoritesrss.php
index 553d28c00..25dd3861f 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);
}