mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
"Run, Luke! Run!"
git-svn-id: file:///svn/phpbb/trunk@7470 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a5704a0b01
commit
a9226883f2
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue