From 2133e5cb54e1bed739b59ff6283000c8ea20ef64 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Mon, 29 Apr 2024 11:04:33 +0300 Subject: [PATCH] Update ModulesManager.php --- web/app/ModulesManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/ModulesManager.php b/web/app/ModulesManager.php index bb2e88b..a72cb31 100644 --- a/web/app/ModulesManager.php +++ b/web/app/ModulesManager.php @@ -30,7 +30,7 @@ class ModulesManager public static function getModuleInfo($module) { if (!is_dir(base_path('Modules/' . $module))) { - unset($modules[$key]); + return []; } $moduleJson = file_get_contents(base_path('Modules/' . $module . '/module.json')); $moduleJson = json_decode($moduleJson, true);