The link led to an error message if the conversation did not contain any messages visible for the user.
// update last visit time count
if (
$this->conversation->isNew()
- && (
- $this->objectList->getMaxPostTime() > $this->conversation->lastVisitTime
+ && ($this->objectList->getMaxPostTime() > $this->conversation->lastVisitTime
|| ($this->conversation->joinedAt && !\count($this->objectList))
)
) {
$statement = WCF::getDB()->prepareStatement($sql, 1);
$statement->execute($this->objectList->getConditionBuilder()->getParameters());
$row = $statement->fetchArray();
+ if ($row === false) {
+ return;
+ }
+
HeaderUtil::redirect(
LinkHandler::getInstance()->getLink(
'Conversation',