From 2f4678908170b8af04a0eae2195bb3c0f732ed58 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 27 Nov 2014 10:08:55 +0100 Subject: 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) --- program/steps/settings/func.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/steps') diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 3ec318566..887aebc3b 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -94,9 +94,9 @@ function rcmail_identities_list($attrib) } // get identities list and define 'mail' column - $list = $RCMAIL->user->list_identities(); + $list = $RCMAIL->user->list_emails(); foreach ($list as $idx => $row) { - $list[$idx]['mail'] = trim($row['name'] . ' <' . rcube_utils::idn_to_utf8($row['email']) .'>'); + $list[$idx]['mail'] = trim($row['name'] . ' <' . rcube_utils::idn_to_utf8($row['email']) . '>'); } // get all identites from DB and define list of cols to be displayed -- cgit v1.2.3