]> _ Git - pmi.git/commitdiff
fix #3027 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 11 Sep 2019 10:12:08 +0000 (12:12 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 11 Sep 2019 10:12:08 +0000 (12:12 +0200)
app/Models/Product.php

index d65708427d02b431d4607798136a48f07b9aa8ef..aec395c0c50fa57aa4fe13b243571eef0ab13a19 100644 (file)
@@ -432,9 +432,13 @@ class Product extends CubistMagicPageModel
 
                     $v = $product->get($spec_name);
 
+                    if (is_array($v)) {
+                        $v = null;
+                    }
                     if (null === $v) {
                         $v = '-';
                     }
+
                     if (!isset($values[$v])) {
                         $values[$v] = 0;
                     }