Added missing brackets

This commit is contained in:
TimZ99 2021-04-15 01:07:49 +02:00
parent ed913c68fd
commit d40dcd1bdc
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
1 changed files with 3 additions and 3 deletions

View File

@ -427,7 +427,7 @@ class StatusNotifier
$body = key_exists('message', $combi) ?
$combi['message'] :
psm_parse_msg($this->status_new, 'email_body', $this->server);
if (bool)psm_get_conf('email_add_url')) $body .= PHP_EOL.PHP_EOL.'<a href="'.PSM_BASE_URL.'">'.PSM_BASE_URL.'</a>';
if ((bool)psm_get_conf('email_add_url')) $body .= PHP_EOL.PHP_EOL.'<a href="'.PSM_BASE_URL.'">'.PSM_BASE_URL.'</a>';
$mail->Body = $body;
$mail->AltBody = str_replace('<br/>', "\n", $body);
@ -696,9 +696,9 @@ class StatusNotifier
$message = key_exists('message', $combi) ?
$combi['message'] :
psm_parse_msg($this->status_new, 'telegram_message', $this->server);
if (bool)psm_get_conf('telegram_add_url')) $body .= PHP_EOL.PSM_BASE_URL;
if ((bool)psm_get_conf('telegram_add_url')) $body .= PHP_EOL.PSM_BASE_URL;
$telegram = psm_build_telegram();
$telegram->setMessage($message;
$telegram->setMessage($message);
// Log
if (psm_get_conf('log_telegram')) {