Fixed oversight in post locating.

This commit is contained in:
flash 2019-01-03 03:19:53 +01:00
parent 751e296451
commit d16703d6d3

View file

@ -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;
}