From aa9b5060902be57333c650195e8bd9e8d4928f62 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 25 May 2020 22:38:17 +0000 Subject: [PATCH] Fixed error on topic page. --- public/forum/topic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/forum/topic.php b/public/forum/topic.php index b06329df..177bdd52 100644 --- a/public/forum/topic.php +++ b/public/forum/topic.php @@ -13,7 +13,7 @@ $moderationMode = !empty($_GET['m']) && is_string($_GET['m']) ? (string)$_GET['m $submissionConfirmed = !empty($_GET['confirm']) && is_string($_GET['confirm']) && $_GET['confirm'] === '1'; $topicUser = User::getCurrent(); -$topicUserId = $topicUser === null ? 0 : $this->getId(); +$topicUserId = $topicUser === null ? 0 : $topicUser->getId(); if($topicId < 1 && $postId > 0) { $postInfo = forum_post_find($postId, $topicUserId);