Fix: impossible to send messages from default identity if SMTP auth is required. Thanx to Galina Gulay.

This commit is contained in:
Boris Gulay
2016-05-31 00:01:08 +03:00
parent ab7bae56b5
commit 9ebacf0d61

View File

@@ -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'];