Thomas B
2016-01-10 66d4ef6e31789b1e1c8a5b5c38cc94dd744e8d68
program/lib/Roundcube/rcube_addressbook.php
@@ -539,7 +539,7 @@
        else if ($compose_mode == 1)
            $fn = join(' ', array($contact['firstname'], $contact['middlename'], $contact['surname']));
        else if ($compose_mode == 0)
            $fn = !empty($contact['name']) ? $contact['name'] : join(' ', array($contact['prefix'], $contact['firstname'], $contact['middlename'], $contact['surname'], $contact['suffix']));
            $fn = $contact['name'] ?: join(' ', array($contact['prefix'], $contact['firstname'], $contact['middlename'], $contact['surname'], $contact['suffix']));
        else {
            $plugin = rcube::get_instance()->plugins->exec_hook('contact_listname', array('contact' => $contact));
            $fn     = $plugin['fn'];
@@ -550,7 +550,7 @@
        // fallbacks...
        if ($fn === '') {
            // ... display name
            if (!empty($contact['name'])) {
            if (!empty(trim($contact['name']))) {
                $fn = $contact['name'];
            }
            // ... organization