Don't ksort() on null
This commit is contained in:
parent
450dd433a3
commit
6454c1dee7
|
@ -85,6 +85,11 @@ class Addon
|
|||
{
|
||||
$addons_admin = [];
|
||||
$addons = DI::config()->get('addons');
|
||||
|
||||
if (empty($addons)) {
|
||||
return $addons_admin;
|
||||
}
|
||||
|
||||
ksort($addons);
|
||||
foreach ($addons as $name => $data) {
|
||||
if (empty($data['admin'])) {
|
||||
|
|
Loading…
Reference in a new issue