Fix PHP 5.3 issue

This commit is contained in:
Frederic Guillot 2015-07-06 21:39:41 -04:00
parent 08259d4f20
commit 538dab64b9
1 changed files with 4 additions and 2 deletions

View File

@ -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);