Fix undefined variable in showgroup
This commit is contained in:
parent
820e19e197
commit
1b00eb2599
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user