Changeset 5489 in subversion


Ignore:
Timestamp:
Nov 25, 2011 8:43:40 AM (19 months ago)
Author:
alec
Message:
  • Add some debug and error handling around vlv_search
File:
1 edited

Legend:

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

    r5406 r5489  
    538538 
    539539    /** 
    540     * Get all members of the given group 
    541     * 
    542     * @param string Group DN 
    543     * @param array  Group entries (if called recursively) 
    544     * @return array Accumulated group members 
     540     * Get all members of the given group 
     541     * 
     542     * @param string Group DN 
     543     * @param array  Group entries (if called recursively) 
     544     * @return array Accumulated group members 
    545545     */ 
    546546    function list_group_members($dn, $count = false, $entries = null) 
     
    743743                array_values($this->fieldmap), 0, (int)$this->prop['sizelimit'], (int)$this->prop['timelimit']); 
    744744 
     745            $this->result = new rcube_result_set(0); 
     746 
     747            if (!$this->ldap_result) { 
     748                $this->_debug("S: ".ldap_error($this->conn)); 
     749                return $this->result; 
     750            } 
     751 
     752            $this->_debug("S: ".ldap_count_entries($this->conn, $this->ldap_result)." record(s)"); 
     753 
    745754            // get all entries of this page and post-filter those that really match the query 
    746755            $search = mb_strtolower($value); 
    747             $this->result = new rcube_result_set(0); 
    748756            $entries = ldap_get_entries($this->conn, $this->ldap_result); 
    749757 
Note: See TracChangeset for help on using the changeset viewer.