Fixed #2 validation error when saving default identity (thanx Wouter de

Geus).
This commit is contained in:
Boris Gulay
2016-05-27 23:49:09 +03:00
parent 6cfbeab7f0
commit b499688318

View File

@@ -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