Ignore:
Timestamp:
09/12/08 16:53:08 (16 years ago)
Author:
niltonneto
Message:

Alterações feitas por João Alfredo.
Email: jakjr@…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php

    r414 r422  
    11371137        function get_maillist_info($uidnumber) 
    11381138        { 
    1139                  
    11401139                /* folling referral connection */ 
    11411140                $ldap_conn_following_ref = ldap_connect($_SESSION['phpgw_info']['expresso']['cc_ldap_server']['host']); 
     
    11701169                                $result['cn']                                   = $entry[0]['cn'][0]; 
    11711170                                $result['mail']                                 = $entry[0]['mail'][0]; 
     1171                                $result['description']                  = utf8_decode($entry[0]['description'][0]); 
    11721172                                $result['accountStatus']                = $entry[0]['accountstatus'][0]; 
    11731173                                $result['phpgwAccountVisible']  = $entry[0]['phpgwaccountvisible'][0]; 
     
    19871987                $info['uid']                            = $uid; 
    19881988                $info['mail']                           = $params['mail']; 
     1989                $info['description']            = utf8_encode($params['description']); 
    19891990                 
    19901991                if ($params['accountStatus'] == 'on') 
     
    20702071                 
    20712072                $uid = $params['uid']; 
    2072                 $justthese = array("accountStatus", "phpgwAccountVisible", "cn", "mail", "mailForwardingAddress"); 
    2073                                  
    2074         $institutional_accounts = ldap_search($this->ldap, $GLOBALS['phpgw_info']['server']['ldap_context'], ("(&(phpgwAccountType=i)(uid=$uid))"), $justthese); 
     2073                //$justthese = array("accountStatus", "phpgwAccountVisible", "cn", "mail", "mailForwardingAddress", "description"); 
     2074                                 
     2075        $institutional_accounts = ldap_search($this->ldap, $GLOBALS['phpgw_info']['server']['ldap_context'], ("(&(phpgwAccountType=i)(uid=$uid))")); 
    20752076        $entrie = ldap_get_entries($this->ldap, $institutional_accounts); 
    20762077                 
     
    20922093                        $return['cn']                                   = $entrie[0]['cn'][0]; 
    20932094                        $return['mail']                                 = $entrie[0]['mail'][0]; 
     2095                        $return['description']                  = utf8_decode($entrie[0]['description'][0]); 
    20942096 
    20952097                        if ($entrie[0]['mailforwardingaddress']['count'] > 0) 
Note: See TracChangeset for help on using the changeset viewer.