Merge pull request #544 from openclassify/dia

update isActive to check for module installation
This commit is contained in:
Fatih Alp 2020-05-08 15:55:45 +03:00 committed by GitHub
commit e9d64e0423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}
}