aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-08-30 12:59:29 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-08-30 12:59:29 +0000
commitafc8c9ba25a69f5f4c86793ab24fe0b9fb1dfb3f (patch)
tree360cc349de1f6d5751ee68debdc4b6ca12172bc2 /phpBB
parent12b9f0b8422c829563d836d2ba5a152942774ea4 (diff)
downloadforums-afc8c9ba25a69f5f4c86793ab24fe0b9fb1dfb3f.tar
forums-afc8c9ba25a69f5f4c86793ab24fe0b9fb1dfb3f.tar.gz
forums-afc8c9ba25a69f5f4c86793ab24fe0b9fb1dfb3f.tar.bz2
forums-afc8c9ba25a69f5f4c86793ab24fe0b9fb1dfb3f.tar.xz
forums-afc8c9ba25a69f5f4c86793ab24fe0b9fb1dfb3f.zip
oops
git-svn-id: file:///svn/phpbb/trunk@4461 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/posting.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 8baf6a1d3b..e89fcb9389 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -681,14 +681,14 @@ if ($submit || $preview || $refresh)
// Check if we want to de-globalize the topic... and ask for new forum
if ($topic_type != POST_GLOBAL)
{
- $sql = 'SELECT forum_id
+ $sql = 'SELECT topic_type, forum_id
FROM ' . TOPICS_TABLE . "
WHERE topic_id = $topic_id";
$result = $db->sql_query_limit($sql, 1);
$row = $db->sql_fetchrow($result);
- if ((int)$row['forum_id'] == 0)
+ if ($row && (int)$row['forum_id'] == 0 && $row['topic_type'] == POST_GLOBAL)
{
$to_forum_id = (!empty($_REQUEST['to_forum_id'])) ? (int) $_REQUEST['to_forum_id'] : 0;