git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7655 b9a71923-0436-4b27-9f14-aed3839534dd

This commit is contained in:
rMalie
2011-07-19 13:55:53 +00:00
parent e91c92ce98
commit 5a1d73862a
4 changed files with 33 additions and 27 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ class ConnectionCore extends ObjectModel
FROM `'._DB_PREFIX_.'connections`
WHERE `id_guest` = '.(int)($cookie->id_guest).'
AND DATE_ADD(`date_add`, INTERVAL 30 MINUTE) > \''.pSQL(date('Y-m-d H:i:00')).'\'
AND id_shop = '.Shop::sqlRestriction().'
'.Shop::sqlRestriction(true).'
ORDER BY `date_add` DESC';
$result = Db::getInstance()->getRow($sql);
if (!$result['id_guest'] AND (int)($cookie->id_guest))