diff --git a/addons/default/visiosoft/advs-module/src/Adv/Command/isActive.php b/addons/default/visiosoft/advs-module/src/Adv/Command/isActive.php index 358c2ea8f..e261e9da5 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/Command/isActive.php +++ b/addons/default/visiosoft/advs-module/src/Adv/Command/isActive.php @@ -34,6 +34,11 @@ class isActive public function handle() { - return app('module.collection')->get($this->project . '.' . $this->type . '.' . $this->name)->isInstalled(); + $module = app('module.collection')->get($this->project . '.' . $this->type . '.' . $this->name); + if ($module) { + return $module->isInstalled(); + } else { + return false; + } } }