We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a171d63 commit faa9dc0Copy full SHA for faa9dc0
1 file changed
statsdata.php
@@ -157,6 +157,10 @@ public function hookActionAuthentication($params)
157
{
158
// Update or merge the guest with the customer id (login and account creation)
159
$guest = new Guest($params['cookie']->id_guest);
160
+ //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
161
+ if (!Validate::isLoadedObject($guest)){
162
+ return;
163
+ }
164
$result = Db::getInstance()->getRow('
165
SELECT `id_guest`
166
FROM `' . _DB_PREFIX_ . 'guest`
0 commit comments