From 9ebacf0d611816f9b9fcc93ff8181a17b9dd178a Mon Sep 17 00:00:00 2001 From: Boris Gulay Date: Tue, 31 May 2016 00:01:08 +0300 Subject: [PATCH] Fix: impossible to send messages from default identity if SMTP auth is required. Thanx to Galina Gulay. --- ident_switch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ident_switch.php b/ident_switch.php index 988463d..ff421ed 100644 --- a/ident_switch.php +++ b/ident_switch.php @@ -133,7 +133,7 @@ class ident_switch extends rcube_plugin // TODO: Rewrite with full settings! - if (strcasecmp($rc->user->data['username'], $_SESSION['username']) !== 1) + if (strcasecmp($rc->user->data['username'], $_SESSION['username']) !== 0) { if ($args['smtp_user'] == '%u') $args['smtp_user'] = $rc->user->data['username'];