From 1b00eb25999a42e8ffa569cdcf719906b8739626 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 11 Apr 2011 11:54:42 -0400 Subject: [PATCH] Fix undefined variable in showgroup --- actions/showgroup.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/actions/showgroup.php b/actions/showgroup.php index 49c8e04dcd..7ad9f112e6 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -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, -- 2.39.5