1
0
Эх сурвалжийг харах

#1959 Add service method which returns number of online users

RomanL 7 жил өмнө
parent
commit
85ccac59b4

+ 1 - 2
inc/classes/BxDolProfileQuery.php

@@ -264,8 +264,7 @@ class BxDolProfileQuery extends BxDolDb implements iBxDolSingleton
         	INNER JOIN `sys_sessions` AS `ts` ON `tp`.`account_id`=`ts`.`user_id` 
         	WHERE 
         		`ta`.`profile_id`=`tp`.`id` AND 
-        		`ts`.`date` > (UNIX_TIMESTAMP() - 60 * ?) 
-        	LIMIT 1", (int)getParam('sys_account_online_time'));
+        		`ts`.`date` > (UNIX_TIMESTAMP() - 60 * ?)", (int)getParam('sys_account_online_time'));
         return (int)$this->getOne($sSql);
     }