Fix notice warning in RSS friends timeline

This commit is contained in:
Brion Vibber 2010-03-03 16:38:51 -08:00
parent 9fadf8da11
commit 8436306d28
1 changed files with 1 additions and 1 deletions

View 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();