summaryrefslogtreecommitdiff
path: root/plugins/new_user_dialog/new_user_dialog.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/new_user_dialog/new_user_dialog.php')
-rw-r--r--plugins/new_user_dialog/new_user_dialog.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/new_user_dialog/new_user_dialog.php b/plugins/new_user_dialog/new_user_dialog.php
index 871384e47..8d641c946 100644
--- a/plugins/new_user_dialog/new_user_dialog.php
+++ b/plugins/new_user_dialog/new_user_dialog.php
@@ -126,7 +126,7 @@ class new_user_dialog extends rcube_plugin
);
// don't let the user alter the e-mail address if disabled by config
- if ($identities_level == 1 || $identities_level == 3)
+ if (in_array($identities_level, array(1,3,4)))
$save_data['email'] = $identity['email'];
else
$save_data['email'] = rcube_utils::idn_to_ascii($save_data['email']);
@@ -141,5 +141,3 @@ class new_user_dialog extends rcube_plugin
}
}
-
-?>