// Merge -> revision 8149

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8151 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-08-22 16:22:16 +00:00
parent d7eaa5f5a4
commit 22d23f8324
18 changed files with 103 additions and 34 deletions
+2 -2
View File
@@ -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';
}