1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-27 01:40:22 +02:00

Fixes #4399 - thread_active value missing.

This commit is contained in:
Cameron
2021-02-18 06:31:48 -08:00
parent d0404cb9b3
commit 6ac83d6ea4

View File

@@ -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 .= "
<div>
<a class='e-tip' href='" . $editURL."' title=\"".LAN_EDIT."\">" . IMAGE_admin_edit . "</a>
<input type='image' " . IMAGE_admin_delete . " name='delete{$type}_{$delId}' value='thread_action' onclick=\"return confirm_('{$type}', {$postInfo['post_forum']}, {$postInfo['post_thread']}, '{$postInfo['user_name']}')\" />
<input type='image' " . IMAGE_admin_delete . " name='delete{$type}_{$delId}' value='thread_action' alt='".LAN_DELETE."' onclick=\"return confirm_('{$type}', {$postInfo['post_forum']}, {$postInfo['post_thread']}, '{$postInfo['user_name']}')\" />
<input type='hidden' name='mod' value='1'/>
";
if ($type == 'Thread')