Changeset 5704 in subversion


Ignore:
Timestamp:
Jan 4, 2012 5:58:00 AM (17 months ago)
Author:
thomasb
Message:

Improve support for multiple composite address fields in LDAP directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_ldap.php

    r5539 r5704  
    13211321                    continue; 
    13221322 
     1323                list($col, $subtype) = explode(':', $rf); 
    13231324                $out['_raw_attrib'][$lf][$i] = $value; 
    13241325 
    13251326                if ($rf == 'email' && $this->mail_domain && !strpos($value, '@')) 
    13261327                    $out[$rf][] = sprintf('%s@%s', $value, $this->mail_domain); 
    1327                 else if (in_array($rf, array('street','zipcode','locality','country','region'))) 
    1328                     $out['address'][$i][$rf] = $value; 
     1328                else if (in_array($col, array('street','zipcode','locality','country','region'))) 
     1329                    $out['address'.($subtype?':':'').$subtype][$i][$col] = $value; 
    13291330                else if ($rec[$lf]['count'] > 1) 
    13301331                    $out[$rf][] = $value; 
Note: See TracChangeset for help on using the changeset viewer.