From 427242616d57cc6682c13419e22c7ca7cdcf9256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 20 Oct 2012 16:54:41 +0200 Subject: [PATCH] Fix variable reference --- file/lib/system/chat/permission/ChatPermissionHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/lib/system/chat/permission/ChatPermissionHandler.class.php b/file/lib/system/chat/permission/ChatPermissionHandler.class.php index f559b5f..78e93b7 100644 --- a/file/lib/system/chat/permission/ChatPermissionHandler.class.php +++ b/file/lib/system/chat/permission/ChatPermissionHandler.class.php @@ -29,7 +29,7 @@ class ChatPermissionHandler { public function __construct(\wcf\data\user\User $user = null) { if ($user === null) $user = WCF::getUser(); - $this->user = new \wcf\data\user\UserProfile($this->user); + $this->user = new \wcf\data\user\UserProfile($user); $packageID = \wcf\util\ChatUtil::getPackageID(); $ush = \wcf\system\user\storage\UserStorageHandler::getInstance();