Skip to content

Commit

Permalink
Fix a typing mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdesign committed Apr 26, 2024
1 parent 57f3628 commit 9d1091d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions files/lib/page/ConversationPage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,17 @@ public function readParameters()
$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 */
Expand Down

0 comments on commit 9d1091d

Please sign in to comment.