summaryrefslogtreecommitdiff
path: root/app/Integration/SlackWebhook.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-06 21:39:41 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-06 21:39:41 -0400
commit538dab64b93f3690c223e148d1126e6ac9b862b8 (patch)
treeed57ba56ee899c848a632df36ea2fb670e740f17 /app/Integration/SlackWebhook.php
parent08259d4f206438095308749b8cc2abbe629137da (diff)
Fix PHP 5.3 issue
Diffstat (limited to 'app/Integration/SlackWebhook.php')
-rw-r--r--app/Integration/SlackWebhook.php6
1 files changed, 4 insertions, 2 deletions
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);