From deac908a77ee5daa1d3e40694982b5ab080dd786 Mon Sep 17 00:00:00 2001 From: Boris Gulay Date: Wed, 22 Jun 2016 23:23:16 +0300 Subject: [PATCH] Fixed bug on plugin strtup (it was always sure we are impersonating). --- ident_switch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ident_switch.php b/ident_switch.php index 389f6bc..f13d24c 100644 --- a/ident_switch.php +++ b/ident_switch.php @@ -39,7 +39,7 @@ class ident_switch extends rcube_plugin $rc = rcmail::get_instance(); error_log('Task: ' . $args['task'] . ', action: ' . $args['action']); - if (strcasecmp($rc->user->data['username'], $_SESSION['username']) !== 1) + if (strcasecmp($rc->user->data['username'], $_SESSION['username']) !== 0) { // We are impersonating $rc->config->set('imap_cache', null); $rc->config->set('messages_cache', false);