Skip to content

Commit

Permalink
Update list.phtml for issue #20229
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekkumarcedcoss committed Jan 15, 2019
1 parent d1f9c6b commit db0e8b2
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 db0e8b2

Please sign in to comment.