Skip to content

Commit 85b119e

Browse files
committed
fixed a if condition
1 parent f88e2b2 commit 85b119e

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Gallery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public function insertGalleryValueInStore($data)
388388
$this->getTable(self::GALLERY_VALUE_TABLE)
389389
);
390390

391-
if ($data['image_metadata']) {
391+
if (!empty($data['image_metadata'])) {
392392
$data['image_metadata'] = $this->getSerializer()->serialize($data['image_metadata']);
393393
}
394394
$this->getConnection()->insert(

0 commit comments

Comments
 (0)