Fixes a fatal error im the webhook controller when an invalid project id is given in the URL

This commit is contained in:
Pablo Tejada 2016-09-15 22:41:30 -04:00
parent 64b0f60368
commit 88089f88c0

View file

@ -437,7 +437,7 @@ class WebhookController extends \b8\Controller
{
$project = $this->projectStore->getById($projectId);
if (empty($projectId)) {
if (empty($project)) {
throw new Exception('Project does not exist: ' . $projectId);
}