|
From: Paul S. O. <ps...@us...> - 2001-11-13 17:26:39
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv31975/includes
Modified Files:
functions.php
Log Message:
Treat moved topics as being non-existent for re-sync of topic counts
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions.php,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -r1.79 -r1.80
*** functions.php 2001/11/03 21:49:01 1.79
--- functions.php 2001/11/13 17:26:36 1.80
***************
*** 625,629 ****
$sql = "SELECT COUNT(topic_id) AS total
FROM " . TOPICS_TABLE . "
! WHERE forum_id = $id";
if( !$result = $db->sql_query($sql) )
{
--- 625,630 ----
$sql = "SELECT COUNT(topic_id) AS total
FROM " . TOPICS_TABLE . "
! WHERE forum_id = $id
! AND topic_status <> " . TOPIC_MOVED;
if( !$result = $db->sql_query($sql) )
{
|