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