mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Allow changing forum from drop down under certain circumstances. #37525
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9789 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -258,7 +258,7 @@ class mcp_reports
|
||||
}
|
||||
unset($forum_list_read);
|
||||
|
||||
if ($topic_id && $forum_id)
|
||||
if ($topic_id)
|
||||
{
|
||||
$topic_info = get_topic_data(array($topic_id));
|
||||
|
||||
@@ -267,12 +267,15 @@ class mcp_reports
|
||||
trigger_error('TOPIC_NOT_EXIST');
|
||||
}
|
||||
|
||||
$topic_info = $topic_info[$topic_id];
|
||||
$forum_id = $topic_info['forum_id'];
|
||||
}
|
||||
else if ($topic_id && !$forum_id)
|
||||
{
|
||||
$topic_id = 0;
|
||||
if ($forum_id != $topic_info[$topic_id]['forum_id'])
|
||||
{
|
||||
$topic_id = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$topic_info = $topic_info[$topic_id];
|
||||
$forum_id = (int) $topic_info['forum_id'];
|
||||
}
|
||||
}
|
||||
|
||||
$forum_list = array();
|
||||
|
Reference in New Issue
Block a user