From 0f5324035a9da284367e988c4ecd380ced014626 Mon Sep 17 00:00:00 2001 From: maxnoto Date: Tue, 28 Feb 2023 14:06:05 +0100 Subject: [PATCH] Update Content.php fix error while importing --- Model/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Content.php b/Model/Content.php index bab6f1a..e6a1d6c 100644 --- a/Model/Content.php +++ b/Model/Content.php @@ -501,7 +501,7 @@ public function importBlockFromArray(array $blockData): bool $blockId = 0; foreach ($collection as $item) { - $storesIntersect = array_intersect($item->getStoreId(), $storeIds); + $storesIntersect = array_intersect((array)$item->getStoreId(), (array)$storeIds); // @codingStandardsIgnoreStart if (count($storesIntersect)) {