mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00: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
2 changed files with 4 additions and 2 deletions
|
@ -246,7 +246,7 @@ function mcp_forum_view($id, $mode, $action, $forum_info)
|
||||||
'LAST_POST_SUBJECT' => $row['topic_last_post_subject'],
|
'LAST_POST_SUBJECT' => $row['topic_last_post_subject'],
|
||||||
'LAST_VIEW_TIME' => $user->format_date($row['topic_last_view_time']),
|
'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_TOPIC_UNAPPROVED' => $topic_unapproved,
|
||||||
'S_POSTS_UNAPPROVED' => $posts_unapproved,
|
'S_POSTS_UNAPPROVED' => $posts_unapproved,
|
||||||
'S_UNREAD_TOPIC' => $unread_topic,
|
'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_moved_id' => $rowset[$orig_topic_id]['topic_moved_id'],
|
||||||
'topic_status' => $rowset[$orig_topic_id]['topic_status'],
|
'topic_status' => $rowset[$orig_topic_id]['topic_status'],
|
||||||
'topic_type' => $rowset[$orig_topic_id]['topic_type'],
|
'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;
|
$rowset[$orig_topic_id] = $row;
|
||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue