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

Commit bdcac52

Browse files
authored
Set default value for $exist variable in list.phtml
1 parent c9a7edd commit bdcac52

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product/list

1 file changed

+5
-1
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/list/items.phtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,15 @@ switch ($type = $block->getType()) {
147147
break;
148148

149149
case 'other':
150+
$exist = null;
150151
break;
152+
153+
default:
154+
$exist = null;
151155
}
152156
?>
153157

154-
<?php if (isset($exist) && $exist):?>
158+
<?php if ($exist):?>
155159

156160
<?php if ($type == 'related' || $type == 'upsell'): ?>
157161
<?php if ($type == 'related'): ?>

0 commit comments

Comments
 (0)