This checkin is sponsored by AOL

git-svn-id: file:///svn/phpbb/trunk@4144 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Ludovic Arnaud 2003-06-19 15:29:53 +00:00
parent 5287a27653
commit 0c14f1d469

View file

@ -663,11 +663,13 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = FALSE,
} }
} }
$sql = 'UPDATE ' . TOPICS_TABLE . ' if (count($topic_ids))
SET topic_reported = 1 - topic_reported {
WHERE topic_id IN (' . implode(', ', $topic_ids) . ')'; $sql = 'UPDATE ' . TOPICS_TABLE . '
$db->sql_query($sql); SET topic_reported = 1 - topic_reported
unset($topic_ids); WHERE topic_id IN (' . implode(', ', $topic_ids) . ')';
$db->sql_query($sql);
}
} }
$db->sql_freeresult($result); $db->sql_freeresult($result);