Skip to content

Commit 8dea942

Browse files
authored
Update Cart.php
Fix MongoDB Driver issue Crinsane#478
1 parent f3acf54 commit 8dea942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cart.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,11 @@ public function restore($identifier)
389389
->where('instance', $this->currentInstance())
390390
->where('identifier', $identifier)->first();
391391

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

394394
$currentInstance = $this->currentInstance();
395395

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

398398
$content = $this->getContent();
399399

0 commit comments

Comments
 (0)