summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-11-27 10:08:55 +0100
committerAleksander Machniak <alec@alec.pl>2014-11-27 10:08:55 +0100
commit2f4678908170b8af04a0eae2195bb3c0f732ed58 (patch)
tree1c3b15557cf48bc1e97712bdbdbeeebf5783c509 /plugins
parent0b36d151572e050b51d82e7429fee847ebb33e22 (diff)
Added rcube_user::list_emails() method with better performance than list_identities()
which should be used always if we want only all user email addresses (with names)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/new_user_identity/new_user_identity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/new_user_identity/new_user_identity.php b/plugins/new_user_identity/new_user_identity.php
index f7d60d4fa..b9054880e 100644
--- a/plugins/new_user_identity/new_user_identity.php
+++ b/plugins/new_user_identity/new_user_identity.php
@@ -67,7 +67,7 @@ class new_user_identity extends rcube_plugin
return $args;
}
- $identities = $this->rc->user->list_identities();
+ $identities = $this->rc->user->list_emails();
$ldap_entry = $this->lookup_user_name(array(
'user' => $this->rc->user->data['username'],
'host' => $this->rc->user->data['mail_host'],
@@ -75,7 +75,7 @@ class new_user_identity extends rcube_plugin
foreach ((array) $ldap_entry['email_list'] as $email) {
foreach ($identities as $identity) {
- if ($identity['email'] == $email ) {
+ if ($identity['email'] == $email) {
continue 2;
}
}