aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_forum.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-06-20 14:24:02 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-06-20 14:24:02 +0000
commit59ee46e2a963492f53cc78189b5020536338986d (patch)
tree9f3767155ad934bbbf60de8ab8e08885484ad310 /phpBB/includes/mcp/mcp_forum.php
parenta0248584a6aaa2334ae54c2f145500b9b0a6d6a0 (diff)
downloadforums-59ee46e2a963492f53cc78189b5020536338986d.tar
forums-59ee46e2a963492f53cc78189b5020536338986d.tar.gz
forums-59ee46e2a963492f53cc78189b5020536338986d.tar.bz2
forums-59ee46e2a963492f53cc78189b5020536338986d.tar.xz
forums-59ee46e2a963492f53cc78189b5020536338986d.zip
#12577
Don't allow users into bot mode to end the illusion of being able to log in as googlebot while keeping privileges (that really wasn't possible). git-svn-id: file:///svn/phpbb/trunk@7785 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_forum.php')
-rw-r--r--phpBB/includes/mcp/mcp_forum.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_forum.php b/phpBB/includes/mcp/mcp_forum.php
index 4387e02739..0578170d7b 100644
--- a/phpBB/includes/mcp/mcp_forum.php
+++ b/phpBB/includes/mcp/mcp_forum.php
@@ -63,7 +63,7 @@ function mcp_forum_view($id, $mode, $action, $forum_info)
}
$selected_ids = '';
- if (sizeof($post_id_list))
+ if (sizeof($post_id_list) && $action != 'merge_topics')
{
foreach ($post_id_list as $num => $post_id)
{
@@ -318,6 +318,11 @@ function merge_topics($forum_id, $topic_ids, $to_topic_id)
{
global $db, $template, $user, $phpEx, $phpbb_root_path, $auth;
+ if (!sizeof($topic_ids))
+ {
+ $template->assign_var('MESSAGE', $user->lang['NO_TOPIC_SELECTED']);
+ return;
+ }
if (!$to_topic_id)
{
$template->assign_var('MESSAGE', $user->lang['NO_FINAL_TOPIC_SELECTED']);