Revision c4c42f28
Added by John Kap over 5 years ago
src/etc/inc/notices.inc | ||
---|---|---|
422 | 422 |
function notify_via_telegram($message, $force = false) { |
423 | 423 |
global $config; |
424 | 424 |
if ((!isset($config['notifications']['telegram']['enabled']) && (!$force)) |
425 |
|| !$config['notifications']['telegram']['api']
|
|
426 |
|| !$config['notifications']['telegram']['chatid']) {
|
|
425 |
|| !$config['notifications']['telegram']['api']
|
|
426 |
|| !$config['notifications']['telegram']['chatid']) {
|
|
427 | 427 |
if ($force) { |
428 | 428 |
return gettext("Unable to test Telegram notification without both API Key & Chat ID set"); |
429 | 429 |
} |
Also available in: Unified diff
Correct Indentation
if statement covering multiple lines was formatted incorrectly.