Skip to content

Commit

Permalink
Merge pull request #871 from afoucret/fix-tracker-ingest
Browse files Browse the repository at this point in the history
Fix possible undefined index error during tracking ingest.
  • Loading branch information
afoucret authored Apr 16, 2018
2 parents b598941 + 41e51cd commit 972ff1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module-elasticsuite-tracker/Model/SessionIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private function getSessionIdsByStore($events)
$sessionIdsByStore = [];

foreach ($events as $event) {
if (isset($event['page']['store_id'])) {
if (isset($event['page']['store_id']) && isset($event['session']['uid'])) {
$sessionIdsByStore[$event['page']['store_id']][] = $event['session']['uid'] ?? 0;
}
}
Expand Down

0 comments on commit 972ff1d

Please sign in to comment.