Changeset 2893 in subversion


Ignore:
Timestamp:
Aug 29, 2009 4:24:03 PM (4 years ago)
Author:
alec
Message:
File:
1 edited

Legend:

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

    r2892 r2893  
    245245      $this->set_search_set($filter); 
    246246    } 
    247      
     247 
    248248    // exec LDAP search if no result resource is stored 
    249249    if ($this->conn && !$this->ldap_result) 
     
    382382    if ($this->conn && $dn) 
    383383    { 
    384       $this->ldap_result = ldap_read($this->conn, base64_decode($dn), "(objectclass=*)", array_values($this->fieldmap)); 
     384      $this->ldap_result = ldap_read($this->conn, base64_decode($dn), '(objectclass=*)', array_values($this->fieldmap)); 
    385385      $entry = @ldap_first_entry($this->conn, $this->ldap_result); 
    386386 
     
    555555  function _exec_search() 
    556556  { 
    557     if ($this->ready && $this->filter) 
    558     { 
     557    if ($this->ready) 
     558    { 
     559      $filter = $this->filter ? $this->filter : '(objectclass=*)'; 
    559560      $function = $this->prop['scope'] == 'sub' ? 'ldap_search' : ($this->prop['scope'] == 'base' ? 'ldap_read' : 'ldap_list'); 
    560       $this->ldap_result = $function($this->conn, $this->prop['base_dn'], $this->filter, array_values($this->fieldmap), 0, 0); 
     561      $this->ldap_result = $function($this->conn, $this->prop['base_dn'], $filter, array_values($this->fieldmap), 0, 0); 
    561562      return true; 
    562563    } 
Note: See TracChangeset for help on using the changeset viewer.