diff --git a/src/Repositories/ProductImageRepository.php b/src/Repositories/ProductImageRepository.php index c290c74..3614913 100644 --- a/src/Repositories/ProductImageRepository.php +++ b/src/Repositories/ProductImageRepository.php @@ -80,7 +80,7 @@ public function bulkuploadImages($data, $product, $imageZipName) { if (isset($data['images'])) { foreach($data['images'] as $key => $value) { - if (is_null($imageZipName)) { + if ( ! is_null($imageZipName)) { $files = "imported-products/extracted-images/admin/".$data['dataFlowProfileRecordId'].'/'. $imageZipName['dirname'].'/'.basename($value); } else { $files = "imported-products/extracted-images/admin/".$data['dataFlowProfileRecordId'].'/'.basename($value);