Changeset 2941 in subversion


Ignore:
Timestamp:
Sep 10, 2009 1:16:26 PM (4 years ago)
Author:
alec
Message:
  • Fix LDAP partial result warning (#1485536)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r2933 r2941  
    22=========================== 
    33 
     4- Fix LDAP partial result warning (#1485536) 
    45- Fix delete in message view deletes permanently with flag_for_deletion=true (#1486101) 
    56- Use faster/secure mt_rand() (#1486094) 
  • trunk/roundcubemail/program/include/rcube_ldap.php

    r2923 r2941  
    389389    if ($this->conn && $dn) 
    390390    { 
    391       $this->ldap_result = ldap_read($this->conn, base64_decode($dn), '(objectclass=*)', array_values($this->fieldmap)); 
     391      $this->ldap_result = @ldap_read($this->conn, base64_decode($dn), '(objectclass=*)', array_values($this->fieldmap)); 
    392392      $entry = @ldap_first_entry($this->conn, $this->ldap_result); 
    393393 
     
    566566      $filter = $this->filter ? $this->filter : '(objectclass=*)'; 
    567567      $function = $this->prop['scope'] == 'sub' ? 'ldap_search' : ($this->prop['scope'] == 'base' ? 'ldap_read' : 'ldap_list'); 
    568       $this->ldap_result = $function($this->conn, $this->prop['base_dn'], $filter, array_values($this->fieldmap), 0, 0); 
     568      $this->ldap_result = @$function($this->conn, $this->prop['base_dn'], $filter, array_values($this->fieldmap), 0, 0); 
    569569      return true; 
    570570    } 
Note: See TracChangeset for help on using the changeset viewer.