From 538dab64b93f3690c223e148d1126e6ac9b862b8 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 6 Jul 2015 21:39:41 -0400 Subject: Fix PHP 5.3 issue --- app/Integration/SlackWebhook.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/Integration/SlackWebhook.php') diff --git a/app/Integration/SlackWebhook.php b/app/Integration/SlackWebhook.php index 4f42dca3..498cea09 100644 --- a/app/Integration/SlackWebhook.php +++ b/app/Integration/SlackWebhook.php @@ -48,8 +48,10 @@ class SlackWebhook extends \Core\Base */ public function getChannel($project_id) { - if (! empty($this->config->get('integration_slack_webhook_channel'))) { - return $this->config->get('integration_slack_webhook_channel'); + $channel = $this->config->get('integration_slack_webhook_channel'); + + if (! empty($channel)) { + return $channel; } $options = $this->projectIntegration->getParameters($project_id); -- cgit v1.2.3