Skip to content

Commit d2b5f71

Browse files
authored
Update for Magento 2.4.4
1 parent 8b1dfe3 commit d2b5f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Block/Menu.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ public function getTreeCategories($categories, $itemPositionClassPrefix, $count
552552
public function getCatLabel($cat)
553553
{
554554
$html = '';
555-
$label = explode(',', $cat->getMagicLabel());
555+
$label = explode(',', $cat->getMagicLabel() ?? '');
556556
foreach ($label as $lab) {
557557
if($lab) $html .= '<span class="cat_label '.$lab.'" rel='.__(trim($lab)).'></span>';
558558
}

0 commit comments

Comments
 (0)