diff --git a/LibreNMS/Alert/Transport/Slack.php b/LibreNMS/Alert/Transport/Slack.php index 4e3086df584e..ffc82a9f4364 100644 --- a/LibreNMS/Alert/Transport/Slack.php +++ b/LibreNMS/Alert/Transport/Slack.php @@ -33,7 +33,7 @@ public function deliverAlert($obj, $opts) return $this->deliverAlertOld($obj, $opts); } $slack_opts['url'] = $this->config['slack-url']; - foreach (explode(PHP_EOL, $this->config['options']) as $option) { + foreach (explode(PHP_EOL, $this->config['slack-options']) as $option) { list($k,$v) = explode('=', $option); $slack_opts[$k] = $v; } @@ -98,7 +98,7 @@ public static function configTemplate() ], [ 'title' => 'Slack Options', - 'name' => 'options', + 'name' => 'slack-options', 'descr' => 'Slack Options', 'type' => 'textarea', ]