We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa20fb3 + c41208f commit e2c06e7Copy full SHA for e2c06e7
app/code/Magento/Theme/Block/Html/Topmenu.php
@@ -133,15 +133,15 @@ protected function _countItems($items)
133
*
134
* @param Menu $items
135
* @param int $limit
136
- * @return array
+ * @return array|void
137
138
* @todo: Add Depth Level limit, and better logic for columns
139
*/
140
protected function _columnBrake($items, $limit)
141
{
142
$total = $this->_countItems($items);
143
if ($total <= $limit) {
144
- return [];
+ return;
145
}
146
147
$result[] = ['total' => $total, 'max' => (int)ceil($total / ceil($total / $limit))];
0 commit comments