mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:02:54 +00:00
Don't ksort() on null
This commit is contained in:
parent
450dd433a3
commit
6454c1dee7
1 changed files with 5 additions and 0 deletions
|
@ -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