mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Telegram: Fix undefined array key (#15025)
This commit is contained in:
@@ -33,7 +33,7 @@ class Telegram extends Transport
|
||||
public function deliverAlert($obj, $opts)
|
||||
{
|
||||
$telegram_opts['chat_id'] = $this->config['telegram-chat-id'];
|
||||
$telegram_opts['message_thread_id'] = $this->config['message-thread-id'];
|
||||
$telegram_opts['message_thread_id'] = $this->config['message-thread-id'] ?? null;
|
||||
$telegram_opts['token'] = $this->config['telegram-token'];
|
||||
$telegram_opts['format'] = $this->config['telegram-format'];
|
||||
|
||||
|
Reference in New Issue
Block a user