public static function getAdminList(): array
{
$addons_admin = [];
- $addons = DI::config()->get('addons') ?? [];
+ $addons = array_filter(DI::config()->get('addons') ?? []);
ksort($addons);
foreach ($addons as $name => $data) {
*/
public static function loadAddons()
{
- self::$addons = array_keys(DI::config()->get('addons') ?? []);
+ self::$addons = array_keys(array_filter(DI::config()->get('addons') ?? []));
}
/**
*/
public static function reload()
{
- $addons = DI::config()->get('addons') ?? [];
+ $addons = array_filter(DI::config()->get('addons') ?? []);
foreach ($addons as $name => $data) {
$addonname = Strings::sanitizeFilePathItem(trim($name));
public static function getVisibleList(): array
{
$visible_addons = [];
- $addons = DI::config()->get('addons') ?? [];
+ $addons = array_filter(DI::config()->get('addons') ?? []);
foreach ($addons as $name => $data) {
$visible_addons[] = $name;