From 88089f88c0ecb273ee476571c23984a9dfb16220 Mon Sep 17 00:00:00 2001 From: Pablo Tejada Date: Thu, 15 Sep 2016 22:41:30 -0400 Subject: [PATCH] Fixes a fatal error im the webhook controller when an invalid project id is given in the URL --- PHPCI/Controller/WebhookController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPCI/Controller/WebhookController.php b/PHPCI/Controller/WebhookController.php index 4b444d03..7d48143f 100644 --- a/PHPCI/Controller/WebhookController.php +++ b/PHPCI/Controller/WebhookController.php @@ -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); }