From fa9ebaf095450e54a9be266a9623b3cc91a19f54 Mon Sep 17 00:00:00 2001 From: Boris Gulay Date: Thu, 12 May 2016 22:53:08 +0300 Subject: [PATCH] Fixed saving values for default acc. --- ident_switch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ident_switch.php b/ident_switch.php index 7ea43ed..57d4476 100644 --- a/ident_switch.php +++ b/ident_switch.php @@ -255,7 +255,7 @@ class ident_switch extends rcube_plugin { foreach ($_SESSION as $k => $v) { - if (strncasecmp(k, 'storage', 7) === 0 && substr_compare($k, $my_postfix, -$my_postfix_len, $my_postfix_len) === 0) + if (strncasecmp($k, 'storage', 7) === 0 && substr_compare($k, $my_postfix, -$my_postfix_len, $my_postfix_len) !== 0) { error_log($k . '=>' . $v); $_SESSION[$k . $my_postfix] = $_SESSION[$k];