X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fallrss.php;h=45f3946a61cfda010765ae3b54ca94360dc4d0a7;hb=05b04b7970d1b0f1e35a64a5537ad61e2fb8db1c;hp=bacb343ce089954417e4af6da52f78d895107f6c;hpb=e38f6165b6a6fe6e4fa1557a3afeceeb3a0d80e6;p=quix0rs-gnu-social.git diff --git a/actions/allrss.php b/actions/allrss.php index bacb343ce0..45f3946a61 100644 --- a/actions/allrss.php +++ b/actions/allrss.php @@ -1,7 +1,7 @@ trimmed('nickname'); $this->user = User::staticGet('nickname', $nickname); @@ -79,9 +81,10 @@ class AllrssAction extends Rss10Action */ function getNotices($limit=0) { - $user = $this->user; - $notice = $user->noticesWithFriends(0, $limit); - + $user = $this->user; + $notice = $user->noticesWithFriends(0, $limit); + $notices = array(); + while ($notice->fetch()) { $notices[] = clone($notice); } @@ -104,7 +107,8 @@ class AllrssAction extends Rss10Action 'link' => common_local_url('all', array('nickname' => $user->nickname)), - 'description' => sprintf(_('Feed for friends of %s'), $user->nickname)); + 'description' => sprintf(_('Feed for friends of %s'), + $user->nickname)); return $c; }