File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,6 +172,10 @@ protected function checkSplit(array $items): bool {
172172
173173 // Only columns bigger then 2 can have a split column.
174174 if ($ this ->cols <= 2 ) {
175+ $ this ->split = FALSE ;
176+ $ this ->splitId = '' ;
177+ $ this ->splitAmount = 0 ;
178+
175179 return FALSE ;
176180 }
177181
@@ -182,6 +186,10 @@ protected function checkSplit(array $items): bool {
182186 $ after = array_key_last ($ items ) != $ split_id ;
183187 // Has items before and after then don't split.
184188 if ($ before & $ after ) {
189+ $ this ->split = FALSE ;
190+ $ this ->splitId = '' ;
191+ $ this ->splitAmount = 0 ;
192+
185193 return FALSE ;
186194 }
187195 }
@@ -333,6 +341,7 @@ protected function constructColumns(array $items): array {
333341 $ col_dividend = $ col_position_amount ;
334342 $ col_disvisor = 2 ;
335343 }
344+
336345 // Calculate the ideal amount of links in each column. We take the total
337346 // links of the level 1 menu item (menu level 2 + 3) and divide by the
338347 // amount of columns.
You can’t perform that action at this time.
0 commit comments