1
1
Fork 0

Don't ksort() on null

This commit is contained in:
Philipp Holzer 2023-01-07 19:52:43 +01:00
parent 450dd433a3
commit 6454c1dee7
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432

View file

@ -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'])) {