// Merge -> revision 8149
This commit is contained in:
@@ -79,7 +79,7 @@ class StatsLive extends Module
|
||||
*/
|
||||
private function getVisitorsOnline()
|
||||
{
|
||||
if (Configuration::get('PS_STATSDATA_CUSTOMER_PAGESVIEWS'))
|
||||
if (Configuration::get('PS_STATSDATA_CUSTOMER_PAGESVIEWS'))
|
||||
{
|
||||
$sql = 'SELECT c.id_guest, c.ip_address, c.date_add, c.http_referer, pt.name as page
|
||||
FROM `'._DB_PREFIX_.'connections` c
|
||||
@@ -90,7 +90,7 @@ class StatsLive extends Module
|
||||
WHERE (g.id_customer IS NULL OR g.id_customer = 0)
|
||||
'.$this->sqlShopRestriction(false, 'c').'
|
||||
AND cp.`time_end` IS NULL
|
||||
AND cp.`time_start` > '.strtotime('-15 minutes').'
|
||||
AND TIME_TO_SEC(TIMEDIFF(NOW(), cp.`time_start`)) < 900
|
||||
GROUP BY c.id_connections
|
||||
ORDER BY c.date_add DESC';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user