From: Alexander Ebert Date: Fri, 26 Apr 2024 11:24:35 +0000 (+0200) Subject: Fix a typing mismatch X-Git-Tag: 6.1.0_Alpha_1~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d1091d6b4e180c33ca96ff6ae8e2c0d954340f2;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git Fix a typing mismatch --- diff --git a/files/lib/page/ConversationPage.class.php b/files/lib/page/ConversationPage.class.php index bcf262c..dd4232f 100644 --- a/files/lib/page/ConversationPage.class.php +++ b/files/lib/page/ConversationPage.class.php @@ -129,17 +129,17 @@ class ConversationPage extends MultipleLinkPage $this->conversationID = $this->message->conversationID; } - $this->conversation = Conversation::getUserConversation($this->conversationID, WCF::getUser()->userID); - if ($this->conversation === null) { + $conversation = Conversation::getUserConversation($this->conversationID, WCF::getUser()->userID); + if ($conversation === null) { throw new IllegalLinkException(); } - if (!$this->conversation->canRead()) { + if (!$conversation->canRead()) { throw new PermissionDeniedException(); } // load labels $this->labelList = ConversationLabel::getLabelsByUser(); - $this->conversation = ViewableConversation::getViewableConversation($this->conversation, $this->labelList); + $this->conversation = ViewableConversation::getViewableConversation($conversation, $this->labelList); // messages per page /** @noinspection PhpUndefinedFieldInspection */