1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-23 23:07:46 +01:00

fix: 🐛 Eccezione quando non ci sono routes nella configurazione del modulo

This commit is contained in:
Maicol Battistini 2022-01-02 14:14:50 +01:00
parent c316be3ef2
commit 8ad8857e2e
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A

View File

@ -31,7 +31,7 @@ class Controller extends BaseController
$drawer_entries[] = config("$id.drawer_entries");
}
$module->drawer_entries = array_merge(...$drawer_entries);
$module->drawer_entries = array_merge(...array_filter($drawer_entries, static fn ($entry) => $entry !== null));
return $module;
});