summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/func.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-02-11 13:50:04 +0000
committerthomascube <thomas@roundcube.net>2012-02-11 13:50:04 +0000
commit4dc22dd63417d6043489898d6ff9ac551c1b4231 (patch)
tree56941762ef893dc134882b32671dc47f0ab5c1ad /program/steps/addressbook/func.inc
parentba36dd03f6f7005a6e35ec02e4ff9a58f95be1c3 (diff)
Backported r5871 to 0.7 release branch
Diffstat (limited to 'program/steps/addressbook/func.inc')
-rw-r--r--program/steps/addressbook/func.inc8
1 files changed, 2 insertions, 6 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc
index cb5cc63dc..caf964db7 100644
--- a/program/steps/addressbook/func.inc
+++ b/program/steps/addressbook/func.inc
@@ -338,13 +338,9 @@ function rcmail_js_contacts_list($result, $prefix='')
// format each col
foreach ($a_show_cols as $col) {
- $val = $row[$col];
- if ($val == '' && $col == 'name') {
- $val = rcube_addressbook::compose_display_name($row, true);
- }
-
+ $val = $col == 'name' ? rcube_addressbook::compose_list_name($row) : $row[$col];
$a_row_cols[$col] = Q($val);
- }
+ }
$OUTPUT->command($prefix.'add_contact_row', $row['ID'], $a_row_cols);
}