- Timestamp:
- 09/18/08 17:04:30 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
r387 r448 625 625 $filter="(&(phpgwAccountType=i)(mailForwardingAddress=".$_SESSION['phpgw_info']['expressomail']['user']['email']."))"; 626 626 $sr = ldap_search($this->ds, $this->ldap_context, $filter, $justthese); 627 if(!ldap_count_entries($this->ds,$sr)) 628 return $info; 629 ldap_sort($this->ds,$sr,"cn"); 630 $result = ldap_get_entries($this->ds, $sr); 631 for ($j = 0;$j < $result["count"]; $j++){ 632 $info[$i]['cn'][0] = utf8_decode($result[$j]['cn'][0]); 633 $info[$i++]['mail'][0] = $result[$j]['mail'][0]; 634 } 627 ## 628 # @AUTHOR Rodrigo Souza dos Santos 629 # @DATE 2008/09/17 630 # @BRIEF Changing to ensure that the variable session is always with due value. 631 ## 632 if(ldap_count_entries($this->ds,$sr)) 633 { 634 ldap_sort($this->ds,$sr,"cn"); 635 $result = ldap_get_entries($this->ds, $sr); 636 for ($j = 0;$j < $result["count"]; $j++){ 637 $info[$i]['cn'][0] = utf8_decode($result[$j]['cn'][0]); 638 $info[$i++]['mail'][0] = $result[$j]['mail'][0]; 639 } 640 } 641 642 $_SESSION['phpgw_info']['expressomail']['user']['shared_mailboxes'] = $info; 643 635 644 return $info; 636 645 }
Note: See TracChangeset
for help on using the changeset viewer.