Skip to content

Commit

Permalink
Fix don't have sub categories still show title
Browse files Browse the repository at this point in the history
  • Loading branch information
duongquyet committed May 7, 2021
1 parent 916e272 commit 7ddd1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/frontend/templates/categories.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $heading = $block->getHeading();
$description = $block->isShowDescription();
$itemAmount = $block->getItemAmount();
?>
<?php if (empty($categories)) return ?>
<?php if (empty(count($categories))) return; ?>
<?php if ($heading): ?>
<h3 class="magepow-categories-heading"><?php echo $heading ?></h3>
<?php endif; ?>
Expand Down

0 comments on commit 7ddd1ce

Please sign in to comment.