mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Treat moved topics as being non-existent for re-sync of topic counts
git-svn-id: file:///svn/phpbb/trunk@1306 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d1fd694282
commit
9d43df0d53
1 changed files with 2 additions and 1 deletions
|
@ -624,7 +624,8 @@ function sync($type, $id)
|
||||||
|
|
||||||
$sql = "SELECT COUNT(topic_id) AS total
|
$sql = "SELECT COUNT(topic_id) AS total
|
||||||
FROM " . TOPICS_TABLE . "
|
FROM " . TOPICS_TABLE . "
|
||||||
WHERE forum_id = $id";
|
WHERE forum_id = $id
|
||||||
|
AND topic_status <> " . TOPIC_MOVED;
|
||||||
if( !$result = $db->sql_query($sql) )
|
if( !$result = $db->sql_query($sql) )
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, "Could not get topic count", "Error", __LINE__, __FILE__, $sql);
|
message_die(GENERAL_ERROR, "Could not get topic count", "Error", __LINE__, __FILE__, $sql);
|
||||||
|
|
Loading…
Add table
Reference in a new issue