Thomas Bruederli
2012-09-17 68a9ff15f2e9982d917ab9c9de5d97e9f000d5bd
Avoid saving composed FN values with only spaces (shows empty names in listing)
1 files modified
2 ■■■ changed files
program/include/rcube_addressbook.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_addressbook.php
@@ -482,7 +482,7 @@
        $fn = $contact['name'];
        if (!$fn)  // default display name composition according to vcard standard
            $fn = join(' ', array_filter(array($contact['prefix'], $contact['firstname'], $contact['middlename'], $contact['surname'], $contact['suffix'])));
            $fn = trim(join(' ', array_filter(array($contact['prefix'], $contact['firstname'], $contact['middlename'], $contact['surname'], $contact['suffix']))));
        // use email address part for name
        $email = is_array($contact['email']) ? $contact['email'][0] : $contact['email'];