Don't ksort() on null

This commit is contained in:
Philipp 2023-01-07 19:52:43 +01:00
parent 450dd433a3
commit 6454c1dee7
No known key found for this signature in database
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'])) {