]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix undefined variable in showgroup
authorEvan Prodromou <evan@status.net>
Mon, 11 Apr 2011 15:54:42 +0000 (11:54 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 11 Apr 2011 15:54:42 +0000 (11:54 -0400)
actions/showgroup.php

index 49c8e04dcdec462dfbbf448916c32bb74ebb971f..7ad9f112e619c0b86119426c64c490f7ed5bd549 100644 (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,