Array needs initializing before it's returned. How did this code ever work?

darcs-hash:20081211022557-7b5ce-8040947f258db638bd68fe2620381b3c078a4c31.gz
This commit is contained in:
Zach Copley 2008-12-10 21:25:57 -05:00
parent 06f99d4b55
commit 466e8d1ed1

View File

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