Changeset 4959 in subversion
- Timestamp:
- Jul 24, 2011 6:14:13 AM (22 months ago)
- Location:
- trunk/roundcubemail/program/steps/addressbook
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/addressbook/func.inc
r4934 r4959 415 415 $content = ''; 416 416 417 // unset display name if it is composed from name parts (same composition function as in save.inc)417 // unset display name if it is composed from name parts 418 418 if ($record['name'] == rcube_addressbook::compose_display_name(array('name' => '') + (array)$record)) 419 419 unset($record['name']); -
trunk/roundcubemail/program/steps/addressbook/save.inc
r4913 r4959 137 137 } 138 138 139 // let a dedicated function or a plugin compose the full name if empty140 if (empty($a_record['name'])) {141 $a_record['name'] = rcube_addressbook::compose_display_name($a_record);142 }143 144 139 145 140 // do input checks (delegated to $CONTACTS instance) … … 222 217 $existing = false; 223 218 foreach ($CONTACTS->get_col_values('email', $a_record, true) as $email) { 224 if (($res = $CONTACTS->search('email', $email, false, false )) && $res->count) {219 if (($res = $CONTACTS->search('email', $email, false, false, true)) && $res->count) { 225 220 $OUTPUT->show_message('contactexists', 'notice', null, false); 226 221 break;
Note: See TracChangeset
for help on using the changeset viewer.
