Fix undefined variable in showgroup

This commit is contained in:
Evan Prodromou 2011-04-11 11:54:42 -04:00
parent 820e19e197
commit 1b00eb2599

View File

@ -146,9 +146,7 @@ class ShowgroupAction extends GroupDesignAction
return false; return false;
} }
$cur = common_current_user(); $this->userProfile = Profile::current();
$this->userProfile = (empty($cur)) ? null : $cur->getProfile();
$stream = new GroupNoticeStream($this->group, $this->userProfile); $stream = new GroupNoticeStream($this->group, $this->userProfile);
@ -201,7 +199,7 @@ class ShowgroupAction extends GroupDesignAction
*/ */
function showGroupNotices() function showGroupNotices()
{ {
$nl = new ThreadedNoticeList($notice, $this, $this->userProfile); $nl = new ThreadedNoticeList($this->notice, $this, $this->userProfile);
$cnt = $nl->show(); $cnt = $nl->show();
$this->pagination($this->page > 1, $this->pagination($this->page > 1,