We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f33cb4f commit 2ac3eccCopy full SHA for 2ac3ecc
1 file changed
pdh/read/chat_online/pdh_r_chat_online.class.php
@@ -79,7 +79,6 @@ public function init()
79
FROM __sessions s
80
WHERE s.session_user_id != -1
81
AND s.session_current > ?
82
- GROUP BY s.session_user_id
83
ORDER BY s.session_current DESC';
84
$result = $this->db->prepare($sql)->execute($this->time->time-600);
85
if ($result)
@@ -88,6 +87,8 @@ public function init()
88
87
// add row by row to local copy
89
while ($row = $result->fetchAssoc())
90
{
+ if(isset( $this->data[(int)$row['session_user_id']])) continue;
91
+
92
$this->data[(int)$row['session_user_id']] = array(
93
'online' => true,
94
'lastvisit' => (int)$row['session_current'],
0 commit comments