Fixes a fatal error im the webhook controller when an invalid project id is given in the URL
This commit is contained in:
parent
64b0f60368
commit
88089f88c0
|
@ -437,7 +437,7 @@ class WebhookController extends \b8\Controller
|
||||||
{
|
{
|
||||||
$project = $this->projectStore->getById($projectId);
|
$project = $this->projectStore->getById($projectId);
|
||||||
|
|
||||||
if (empty($projectId)) {
|
if (empty($project)) {
|
||||||
throw new Exception('Project does not exist: ' . $projectId);
|
throw new Exception('Project does not exist: ' . $projectId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue