From 82b41c2d626471ab75be13e77ccafbdba9e2a68c Mon Sep 17 00:00:00 2001 From: ralf Date: Mon, 28 Mar 2022 19:47:56 +0300 Subject: [PATCH] remove not used/existing async_identity configuration --- .../inc/class.notifications_email.inc.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/notifications/inc/class.notifications_email.inc.php b/notifications/inc/class.notifications_email.inc.php index fae5f66109..082eb44ae6 100644 --- a/notifications/inc/class.notifications_email.inc.php +++ b/notifications/inc/class.notifications_email.inc.php @@ -83,20 +83,6 @@ class notifications_email implements notifications_iface { { $ident = Api\Mail\Account::read($this->config->async_identity); } - else - { - if($this->config->async_account) - { - $mail_identities = Api\Mail\Account::identities([], true, 'params', $this->config->async_account); - foreach($mail_identities as $mi) - { - if($mi['ident_email'] == $this->config->async_email || !$this->config->async_email) - { - $ident = Api\Mail\Account::read($mi['acc_id']); - } - } - } - } $this->mail = new Api\Mailer($ident); } @@ -192,4 +178,4 @@ class notifications_email implements notifications_iface { return $hruler.$newline.lang('Linked entries:').$newline.implode($newline,$rendered_links); } -} +} \ No newline at end of file