diff --git a/src/module-elasticsuite-tracker/Model/ResourceModel/EventQueue.php b/src/module-elasticsuite-tracker/Model/ResourceModel/EventQueue.php index a531e8136..e097315d2 100644 --- a/src/module-elasticsuite-tracker/Model/ResourceModel/EventQueue.php +++ b/src/module-elasticsuite-tracker/Model/ResourceModel/EventQueue.php @@ -249,8 +249,8 @@ protected function isEventInvalid($data) if (array_key_exists('session', $data)) { if (array_key_exists('uid', $data['session']) && array_key_exists('vid', $data['session'])) { $isEventInvalid = false; - $sessionUid = trim($data['session']['uid']); - $sessionVid = trim($data['session']['vid']); + $sessionUid = trim($data['session']['uid'] ?? ''); + $sessionVid = trim($data['session']['vid'] ?? ''); if (empty($sessionUid) || ("null" === $sessionUid)) { $isEventInvalid = true; }