Fixed bug on plugin strtup (it was always sure we are impersonating).

This commit is contained in:
Boris Gulay
2016-06-22 23:23:16 +03:00
parent f1874e3fe7
commit deac908a77

View File

@@ -39,7 +39,7 @@ class ident_switch extends rcube_plugin
$rc = rcmail::get_instance(); $rc = rcmail::get_instance();
error_log('Task: ' . $args['task'] . ', action: ' . $args['action']); 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 { // We are impersonating
$rc->config->set('imap_cache', null); $rc->config->set('imap_cache', null);
$rc->config->set('messages_cache', false); $rc->config->set('messages_cache', false);