Change count() to sizeof()

This commit is contained in:
Ice committed 2008-08-09 13:27:34 +00:00
1 parent 2a37786346
commit 2f7427a29e
7 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ if (!defined('IN_PORTAL'))
if ($user->data['is_registered'])
{
// new posts since last visit
$sql = "SELECT COUNT(distinct post_id) as total
$sql = "SELECT sizeof(distinct post_id) as total
FROM " . POSTS_TABLE . "
WHERE post_time >= " . $user->data['session_last_visit'];
$result = $db->sql_query($sql);