diff --git a/ident_switch.php b/ident_switch.php index b328390..b437d9d 100644 --- a/ident_switch.php +++ b/ident_switch.php @@ -135,7 +135,7 @@ class ident_switch extends rcube_plugin { $rc = rcmail::get_instance(); - // Do now show options for default identity + // Do not show options for default identity if (strcasecmp($args['record']['email'], $rc->user->data['username']) === 0) return $args; @@ -182,6 +182,11 @@ class ident_switch extends rcube_plugin { $rc = rcmail::get_instance(); + // Do not do anything for default identity + if (strcasecmp($args['record']['email'], $rc->user->data['username']) === 0) + return $args; + + $this->add_texts('localization'); // Check field values