Index: /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php =================================================================== --- /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php (revision 448) +++ /trunk/expressoMail1_2/inc/class.ldap_functions.inc.php (revision 644) @@ -87,19 +87,20 @@ $field = $params['field']; $ID = $params['ID']; - + $search_for = explode(" ",$search_for); $aux=""; foreach ($search_for as $search) - { + { if(!$aux) - { + { $aux=$search; - } - else - { - $aux=$aux."*".$search; - } - } + } + else + { + $aux=$aux."*".$search; + } + } $search_for=$aux; + $contacts_result = array(); $contacts_result['field'] = $field; @@ -312,4 +313,13 @@ } } + // Begin: nickname, firstname and lastname for QuickAdd. + $fn = $contacts_result["cn"]; + $array_name = explode(" ", $fn); + if(count($array_name) > 1){ + $fn = $array_name[0]; + array_shift($array_name); + $sn = implode(" ",$array_name); + } + // End: $option = '