From 6ac83d6ea4be5fe33e1d91a1b76fe87237a0576a Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 18 Feb 2021 06:31:48 -0800 Subject: [PATCH] Fixes #4399 - thread_active value missing. --- e107_plugins/forum/forum_viewtopic.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/e107_plugins/forum/forum_viewtopic.php b/e107_plugins/forum/forum_viewtopic.php index 7e732f6cf..e84ca11ca 100644 --- a/e107_plugins/forum/forum_viewtopic.php +++ b/e107_plugins/forum/forum_viewtopic.php @@ -289,10 +289,13 @@ $sc->setScVar('thisIsTheLastPost', false); foreach ($postList as $c => $postInfo) { - if($postInfo['post_options']) + $postInfo['thread_active'] = $thread->threadInfo['thread_active']; + + if(!empty($postInfo['post_options'])) { $postInfo['post_options'] = unserialize($postInfo['post_options']); } + $loop_uid = (int)$postInfo['post_user']; $lastPostDetectionCounter--; @@ -431,7 +434,7 @@ function showmodoptions() $ret .= "
" . IMAGE_admin_edit . " - + "; if ($type == 'Thread')