summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_user.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php
index b68c56cfa..9d4d67589 100644
--- a/program/include/rcube_user.php
+++ b/program/include/rcube_user.php
@@ -385,7 +385,11 @@ class rcube_user
if (empty($email_list))
$email_list[] = strip_newlines($user_email);
- // also create new identity records
+ // identities_level check
+ if (count($email_list) > 1 && $rcmail->config->get('identities_level', 0) > 1)
+ $email_list = array($email_list[0]);
+
+ // create new identities records
$standard = 1;
foreach ($email_list as $email) {
$dbh->query(