Skip to content

Commit

Permalink
check module is active before instanciating it
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-rolland committed Oct 5, 2022
1 parent 387c0d3 commit a976e57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function indexAction(Request $request)

$modules = [];
foreach ($installedModules as $installedModule) {
if ($module = $moduleAdapter->getInstanceById($installedModule['id_module'])) {
if ($installedModule['active'] && $module = $moduleAdapter->getInstanceById($installedModule['id_module'])) {
// We want to be able to sort modules by display name
$modules[(int) $module->id] = $module;
}
Expand Down

0 comments on commit a976e57

Please sign in to comment.