Find & replace went horribly wrong...

This commit is contained in:
Ice
2008-08-10 01:56:17 +00:00
parent 78ce5e5f92
commit 18d0124675
5 changed files with 8 additions and 8 deletions

View File

@@ -28,19 +28,19 @@ function get_db_stat($mode)
switch( $mode )
{
case 'announcementtotal':
$sql = 'SELECT sizeof(distinct t.topic_id) AS announcement_total
$sql = 'SELECT COUNT(distinct t.topic_id) AS announcement_total
FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
WHERE t.topic_type = ' . POST_ANNOUNCE . '
AND p.post_id = t.topic_first_post_id';
break;
case 'stickytotal':
$sql = 'SELECT sizeof(distinct t.topic_id) AS sticky_total
$sql = 'SELECT COUNT(distinct t.topic_id) AS sticky_total
FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
WHERE t.topic_type = ' . POST_STICKY . '
AND p.post_id = t.topic_first_post_id';
break;
case 'attachmentstotal':
$sql = 'SELECT sizeof(attach_id) AS attachments_total
$sql = 'SELECT COUNT(attach_id) AS attachments_total
FROM ' . ATTACHMENTS_TABLE;
break;
}