Fix empty name in search results and error when creating a new contact

This commit is contained in:
thomascube
2011-05-13 17:51:28 +00:00
parent 8e99ffbcac
commit 445a4ca04d
2 changed files with 6 additions and 3 deletions

View File

@@ -348,7 +348,7 @@ function rcmail_contact_form($form, $record, $attrib = null)
$content = '';
// unset display name if it is composed from name parts (same composition function as in save.inc)
if ($record['name'] == rcube_addressbook::compose_display_name(array('name' => '') + $record))
if ($record['name'] == rcube_addressbook::compose_display_name(array('name' => '') + (array)$record))
unset($record['name']);
// group fields