Fix a typing mismatch
authorAlexander Ebert <ebert@woltlab.com>
Fri, 26 Apr 2024 11:24:35 +0000 (13:24 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 26 Apr 2024 11:24:35 +0000 (13:24 +0200)
files/lib/page/ConversationPage.class.php

index bcf262cc3af4847a743385e9b8858e89cb9b4f88..dd4232fec76a8a109c0fa8d1f7b5be9ba8681af6 100644 (file)
@@ -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 */