mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 14:56:13 -06:00
update isActive to check for module installation
This commit is contained in:
parent
eb0a854d40
commit
e3696940b1
@ -34,6 +34,11 @@ class isActive
|
|||||||
|
|
||||||
public function handle()
|
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