mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #544 from openclassify/dia
update isActive to check for module installation
This commit is contained in:
commit
e9d64e0423
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user