Skip to content

Commit

Permalink
Update Cart.php
Browse files Browse the repository at this point in the history
Fix MongoDB Driver issue Crinsane#478
  • Loading branch information
hardevine authored May 26, 2021
1 parent f3acf54 commit 8dea942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@ public function restore($identifier)
->where('instance', $this->currentInstance())
->where('identifier', $identifier)->first();

$storedContent = unserialize($stored->content);
$storedContent = unserialize(data_get($stored, 'content'));

$currentInstance = $this->currentInstance();

$this->instance($stored->instance);
$this->instance(data_get($stored, 'instance'));

$content = $this->getContent();

Expand Down

0 comments on commit 8dea942

Please sign in to comment.