Skip to content

Commit 781e859

Browse files
[MO] : bug with json_decode
1 parent 0667fbf commit 781e859

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ps_googleanalytics.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public function hookdisplayFooter()
320320
if (isset($this->context->cookie->ga_cart)) {
321321
$this->filterable = 0;
322322

323-
$gacarts = json_decode($this->context->cookie->ga_cart);
323+
$gacarts = json_decode($this->context->cookie->ga_cart, true);
324324
if (is_array($gacarts)) {
325325
foreach ($gacarts as $gacart) {
326326
if ($gacart['quantity'] > 0) {
@@ -773,7 +773,7 @@ public function hookactionCartSave()
773773
}
774774

775775
if (isset($this->context->cookie->ga_cart)) {
776-
$gacart = json_decode($this->context->cookie->ga_cart);
776+
$gacart = json_decode($this->context->cookie->ga_cart, true);
777777
} else {
778778
$gacart = array();
779779
}

0 commit comments

Comments
 (0)