forked from deblan/side_menu
fix issue with empty cat
This commit is contained in:
parent
d30603c7d1
commit
c6a43f755d
3 changed files with 12 additions and 8 deletions
|
|
@ -188,7 +188,11 @@ class NavController extends Controller
|
|||
}
|
||||
|
||||
foreach ($items as $category => $value) {
|
||||
ksort($items[$category]['apps']);
|
||||
if (empty($items[$category]['apps'])) {
|
||||
unset($items[$category]);
|
||||
} else {
|
||||
ksort($items[$category]['apps']);
|
||||
}
|
||||
}
|
||||
|
||||
usort($items, function ($a, $b) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue