Skip to content

Commit e2c06e7

Browse files
committed
Merge remote-tracking branch 'origin/MC-22822' into 2.3-develop-pr89
2 parents aa20fb3 + c41208f commit e2c06e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Theme/Block/Html/Topmenu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ protected function _countItems($items)
133133
*
134134
* @param Menu $items
135135
* @param int $limit
136-
* @return array
136+
* @return array|void
137137
*
138138
* @todo: Add Depth Level limit, and better logic for columns
139139
*/
140140
protected function _columnBrake($items, $limit)
141141
{
142142
$total = $this->_countItems($items);
143143
if ($total <= $limit) {
144-
return [];
144+
return;
145145
}
146146

147147
$result[] = ['total' => $total, 'max' => (int)ceil($total / ceil($total / $limit))];

0 commit comments

Comments
 (0)