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 Feb 2, 2019
1 parent d700436 commit f65131a
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 f65131a

Please sign in to comment.