diff --git a/Queue/Action/Product/CategoryIdsModifier.php b/Queue/Action/Product/CategoryIdsModifier.php index 5636175..5408c8a 100644 --- a/Queue/Action/Product/CategoryIdsModifier.php +++ b/Queue/Action/Product/CategoryIdsModifier.php @@ -83,7 +83,7 @@ public function handle(Product $product, PimcoreProductInterface $pimcoreProduct $mageCatIds = $catCollection->getAllIds(); $pimcoreProduct->setData('category_ids', $mageCatIds); - if (count($pimCatIds) !== count($mageCatIds)) { + if (is_iterable($pimCatIds) && count($pimCatIds) !== count($mageCatIds)) { $existingPimCatIds = []; /** @var Category $category */ foreach ($catCollection as $category) {