"Run, Luke! Run!"

git-svn-id: file:///svn/phpbb/trunk@7470 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-05-05 12:38:34 +00:00
parent a5704a0b01
commit a9226883f2

View file

@ -598,10 +598,9 @@ function mcp_move_topic($topic_ids)
$db->sql_transaction('begin');
$sql = 'SELECT topic_replies + 1 as topic_posts
$sql = 'SELECT SUM(topic_replies + 1) as topic_posts
FROM ' . TOPICS_TABLE . ' t
WHERE ' . $db->sql_in_set('t.topic_id', $topic_ids) . '
GROUP BY topic_posts';
WHERE ' . $db->sql_in_set('t.topic_id', $topic_ids);
$result = $db->sql_query($sql);
$row_data = $db->sql_fetchrow($result);
$db->sql_freeresult($result);