1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-25 20:44:01 +01:00

Do not display reported topic icon for shadow topics. (Bug #13970)

git-svn-id: file:///svn/phpbb/trunk@8854 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2008-09-16 12:51:36 +00:00
parent ca07af715f
commit de0bc7476a
2 changed files with 3 additions and 2 deletions

View File

@ -657,8 +657,8 @@ function mcp_move_topic($topic_ids)
'forum_id' => (int) $row['forum_id'],
'icon_id' => (int) $row['icon_id'],
'topic_attachment' => (int) $row['topic_attachment'],
'topic_approved' => 1,
'topic_reported' => (int) $row['topic_reported'],
'topic_approved' => 1, // a shadow topic is always approved
'topic_reported' => 0, // a shadow topic is never reported
'topic_title' => (string) $row['topic_title'],
'topic_poster' => (int) $row['topic_poster'],
'topic_time' => (int) $row['topic_time'],

View File

@ -503,6 +503,7 @@ 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'],
));
$rowset[$orig_topic_id] = $row;