From 5a29ff2a1d8b96fb1a9a83e60bc0d0b88d5af78b Mon Sep 17 00:00:00 2001
From: Henning Leutz <leutz@pcsg.de>
Date: Wed, 12 Aug 2020 12:03:58 +0200
Subject: [PATCH] fix: json ld fix -> quiqqer/products#221

---
 src/QUI/ERP/Products/Product/JsonLd.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/QUI/ERP/Products/Product/JsonLd.php b/src/QUI/ERP/Products/Product/JsonLd.php
index 91d351b5..759d6e7d 100644
--- a/src/QUI/ERP/Products/Product/JsonLd.php
+++ b/src/QUI/ERP/Products/Product/JsonLd.php
@@ -166,6 +166,7 @@ protected static function getImages(ProductInterface $Product)
         }
 
         $images = \array_unique($images);
+        $images = \array_values($images); // because of json array format
 
         if (!\count($images)) {
             return [];
-- 
GitLab