diff options
author | Chris Smith <toonarmy@phpbb.com> | 2009-07-19 01:00:33 +0000 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2009-07-19 01:00:33 +0000 |
commit | 208f74970b15d255a83f9c9a58c5ba4ddf596b86 (patch) | |
tree | 6d22431bcbf21a7a1a707631d219a037f1a14b29 /phpBB/includes/mcp/mcp_reports.php | |
parent | 4f6f9c424d124ec3839809828bbe45ae7a17436a (diff) | |
download | forums-208f74970b15d255a83f9c9a58c5ba4ddf596b86.tar forums-208f74970b15d255a83f9c9a58c5ba4ddf596b86.tar.gz forums-208f74970b15d255a83f9c9a58c5ba4ddf596b86.tar.bz2 forums-208f74970b15d255a83f9c9a58c5ba4ddf596b86.tar.xz forums-208f74970b15d255a83f9c9a58c5ba4ddf596b86.zip |
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
Diffstat (limited to 'phpBB/includes/mcp/mcp_reports.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_reports.php | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php index 27d841c81b..cc701a0540 100644 --- a/phpBB/includes/mcp/mcp_reports.php +++ b/phpBB/includes/mcp/mcp_reports.php @@ -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(); |