diff options
Diffstat (limited to 'app/Controller/Webhook.php')
-rw-r--r-- | app/Controller/Webhook.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/Webhook.php b/app/Controller/Webhook.php index 667c5087..c79b4ed6 100644 --- a/app/Controller/Webhook.php +++ b/app/Controller/Webhook.php @@ -96,7 +96,7 @@ class Webhook extends Base $this->bitbucketWebhook->setProjectId($this->request->getIntegerParam('project_id')); - $result = $this->bitbucketWebhook->parsePayload(json_decode(@$_POST['payload'], true)); + $result = $this->bitbucketWebhook->parsePayload(json_decode(@$_POST['payload'], true) ?: array()); echo $result ? 'PARSED' : 'IGNORED'; } |