diff --git a/app/Integration/SlackWebhook.php b/app/Integration/SlackWebhook.php index 4f42dca3e..498cea097 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);