Skip to content

Commit

Permalink
Update list.phtml for issue magento#20229
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekkumarcedcoss committed Jan 12, 2019
1 parent d1f9c6b commit 968d71a
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -116,7 +116,9 @@
<?php $block->getImage($item, 'product_small_image')->toHtml(); ?>
<?php break;
default: ?>
<?= /* @escapeNotVerified */ $helper->productAttribute($item, $block->getProductAttributeValue($item, $attribute), $attribute->getAttributeCode()) ?>
<?php if(is_string($block->getProductAttributeValue($item, $attribute))):?>
<?= /* @escapeNotVerified */ $helper->productAttribute($item, $block->getProductAttributeValue($item, $attribute), $attribute->getAttributeCode()) ?>
<?php endif; ?>
<?php break;
} ?>
</div>
Expand Down

0 comments on commit 968d71a

Please sign in to comment.