From d16703d6d3c0d4350fcda66707b8aa7164f821f8 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 3 Jan 2019 03:19:53 +0100 Subject: [PATCH] Fixed oversight in post locating. --- 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 1ffa596c..6152cc61 100644 --- a/public/forum/topic.php +++ b/public/forum/topic.php @@ -33,7 +33,7 @@ if (!perms_check($perms, MSZ_FORUM_PERM_VIEW_FORUM)) { $topicPagination = pagination_create($topic['topic_post_count'], 10); -if (!empty($postInfo['preceeding_post_count'])) { +if (isset($postInfo['preceeding_post_count'])) { $postsPage = floor($postInfo['preceeding_post_count'] / $topicPagination['range']) + 1; }