diff options
-rw-r--r-- | app/Integration/SlackWebhook.php | 6 |
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); |