From: Vincent Vanwaelscappel Date: Tue, 1 Oct 2019 13:51:15 +0000 (+0200) Subject: fix #3095 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=57f84b679fc9a9b29dddaab2be1c946016899c52;p=pmi.git fix #3095 @0.5 --- diff --git a/app/Models/Product.php b/app/Models/Product.php index 2bf747b..bbdbe72 100644 --- a/app/Models/Product.php +++ b/app/Models/Product.php @@ -300,7 +300,11 @@ class Product extends CubistMagicPageModel if (is_array($val)) { continue; } - $option = Json::decodeRecursive($specEntity->options, Json::TYPE_ARRAY)[$val]; + $options = Json::decodeRecursive($specEntity->options, Json::TYPE_ARRAY); + if (!isset($options[$val])) { + continue; + } + $option = $options[$val]; $locale = App::getLocale(); if (!isset($option[$locale]) || !$option[$locale]) {