Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 15064d9

Browse files
committed
re-push fix for #11796 with punitv user
1 parent 6181457 commit 15064d9

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content

1 file changed

+1
-2
lines changed

app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
<ol class="product-items <?= /* @noEscape */ $type ?>">
3636
<?php $iterator = 1; ?>
3737
<?php foreach ($items as $_item): ?>
38-
<?php if ($iterator++ != 1): ?></li><?php endif ?>
39-
<li class="product-item">
38+
<?= /* @noEscape */ ($iterator++ == 1) ? '<li class="product-item">' : '</li><li class="product-item">' ?>
4039
<div class="product-item-info">
4140
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>" class="product-item-photo">
4241
<?= $block->getImage($_item, $image)->toHtml() ?>

0 commit comments

Comments
 (0)