mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
Really fix #13970 broken fix in r8853.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9003 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
853a12cf00
commit
213773e368
@ -246,7 +246,7 @@ function mcp_forum_view($id, $mode, $action, $forum_info)
|
||||
'LAST_POST_SUBJECT' => $row['topic_last_post_subject'],
|
||||
'LAST_VIEW_TIME' => $user->format_date($row['topic_last_view_time']),
|
||||
|
||||
'S_TOPIC_REPORTED' => (!empty($row['topic_reported']) && $auth->acl_get('m_report', $row['forum_id'])) ? true : false,
|
||||
'S_TOPIC_REPORTED' => (!empty($row['topic_reported']) && empty($row['topic_moved_id']) && $auth->acl_get('m_report', $row['forum_id'])) ? true : false,
|
||||
'S_TOPIC_UNAPPROVED' => $topic_unapproved,
|
||||
'S_POSTS_UNAPPROVED' => $posts_unapproved,
|
||||
'S_UNREAD_TOPIC' => $unread_topic,
|
||||
|
@ -506,9 +506,11 @@ if (sizeof($shadow_topic_list))
|
||||
'topic_moved_id' => $rowset[$orig_topic_id]['topic_moved_id'],
|
||||
'topic_status' => $rowset[$orig_topic_id]['topic_status'],
|
||||
'topic_type' => $rowset[$orig_topic_id]['topic_type'],
|
||||
'topic_reported' => $rowset[$orig_topic_id]['topic_reported'],
|
||||
));
|
||||
|
||||
// Shadow topics are never reported
|
||||
$row['topic_reported'] = 0;
|
||||
|
||||
$rowset[$orig_topic_id] = $row;
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
Loading…
x
Reference in New Issue
Block a user