fix issue with empty cat
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user