- #10159 (as well as the exact same issue with reports)

- #10263


git-svn-id: file:///svn/phpbb/trunk@7432 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Vic D'Elfant 2007-04-30 11:44:54 +00:00
parent ed272ece1d
commit ef427b6483
2 changed files with 11 additions and 6 deletions

View file

@ -189,14 +189,18 @@ else
// Hide some of the options if we don't have the relevant information to use them
if (!$post_id)
{
$module->set_display('reports', 'report_details', false);
$module->set_display('main', 'post_details', false);
$module->set_display('warn', 'warn_post', false);
}
if (!$topic_id || $mode == 'unapproved_posts')
{
$module->set_display('queue', 'approve_details', false);
}
if ($mode == '' || $mode == 'unapproved_topics' || $mode == 'unapproved_posts')
{
$module->set_display('queue', 'approve_details', false);
}
if ($mode == '' || $mode == 'reports' || $mode == 'reports_closed')
{
$module->set_display('reports', 'report_details', false);
}
if (!$topic_id)

View file

@ -132,7 +132,8 @@ if ($submit && $reason_id)
{
$sql = 'UPDATE ' . TOPICS_TABLE . '
SET topic_reported = 1
WHERE topic_id = ' . $report_data['topic_id'];
WHERE topic_id = ' . $report_data['topic_id'] . '
OR topic_moved_id = ' . $report_data['topic_id'];
$db->sql_query($sql);
}