From 57f84b679fc9a9b29dddaab2be1c946016899c52 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 1 Oct 2019 15:51:15 +0200 Subject: [PATCH] fix #3095 @0.5 --- app/Models/Product.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]) { -- 2.39.5