]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix notice warning in RSS friends timeline
authorBrion Vibber <brion@pobox.com>
Thu, 4 Mar 2010 00:38:51 +0000 (16:38 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 4 Mar 2010 00:38:51 +0000 (16:38 -0800)
actions/allrss.php

index 28b1be27d82a254d82bebca9943138576b9e3927..01e737ad7bb65300df8b166dd39eb6351b2deada 100644 (file)
@@ -83,6 +83,7 @@ class AllrssAction extends Rss10Action
     function getNotices($limit=0)
     {
         $cur = common_current_user();
+        $user = $this->user;
 
         if (!empty($cur) && $cur->id == $user->id) {
             $notice = $this->user->noticeInbox(0, $limit);
@@ -90,7 +91,6 @@ class AllrssAction extends Rss10Action
             $notice = $this->user->noticesWithFriends(0, $limit);
         }
 
-        $user    = $this->user;
         $notice  = $user->noticesWithFriends(0, $limit);
         $notices = array();