Changeset 9b33118 in github


Ignore:
Timestamp:
Nov 25, 2011 8:43:40 AM (18 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
e0960f6
Parents:
d0924d4
Message:
  • Add some debug and error handling around vlv_search
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_ldap.php

    rf21a04c r9b33118  
    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.