Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions statsdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ public function hookActionAuthentication($params)
{
// Update or merge the guest with the customer id (login and account creation)
$guest = new Guest($params['cookie']->id_guest);
//Sometimes the id_guest in the cookie is empty / invalid or old here (it has been deleted already), so we should interrupt here in that case
if (!Validate::isLoadedObject($guest)){
return;
}
$result = Db::getInstance()->getRow('
SELECT `id_guest`
FROM `' . _DB_PREFIX_ . 'guest`
Expand Down