Find & replace went horribly wrong...
This commit is contained in:
1 parent
78ce5e5f92
commit
18d0124675
5 files changed
+8
-8
No files matched your search
@@ -26,7 +26,7 @@ if (!defined('IN_PORTAL'))
|
||||
if ($user->data['is_registered'])
|
||||
{
|
||||
// new posts since last visit
|
||||
$sql = "SELECT sizeof(distinct post_id) as total
|
||||
$sql = "SELECT COUNT(distinct post_id) as total
|
||||
FROM " . POSTS_TABLE . "
|
||||
WHERE post_time >= " . $user->data['session_last_visit'];
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
Reference in new issue
Block a user