diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-04-16 09:46:39 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-04-16 09:46:39 +0200 |
commit | 2964fb573de6ead8a74a1a0defa0bfdd554ab50d (patch) | |
tree | 1b96f2059fe6cdd828b8659ba5458d67fe696c24 /plugins/new_user_dialog/new_user_dialog.php | |
parent | 0c896b98796e41b57ff2345869e77bdc9ea31924 (diff) |
Fix handling of identities_level=4
Diffstat (limited to 'plugins/new_user_dialog/new_user_dialog.php')
-rw-r--r-- | plugins/new_user_dialog/new_user_dialog.php | 4 |
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 } } - -?> |