summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_ldap_generic.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-02-14 11:58:28 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-02-14 11:58:28 +0100
commit807c3d0d9745e850d08ceb2a1d6c018f8b791706 (patch)
tree084d254cf7adb9d9898583b4d22d74e20639f9e5 /program/lib/Roundcube/rcube_ldap_generic.php
parentc8a714cca4978395292e82ed1971fbf92fa78487 (diff)
Optimmize memory usage by only fetching the necessary attributes used for contacts listing
Diffstat (limited to 'program/lib/Roundcube/rcube_ldap_generic.php')
-rw-r--r--program/lib/Roundcube/rcube_ldap_generic.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_ldap_generic.php b/program/lib/Roundcube/rcube_ldap_generic.php
index 0b04129fb..c5ea4ea4c 100644
--- a/program/lib/Roundcube/rcube_ldap_generic.php
+++ b/program/lib/Roundcube/rcube_ldap_generic.php
@@ -412,6 +412,9 @@ class rcube_ldap_generic
$this->_debug("S: ".($errmsg ? $errmsg : ldap_error($this->conn)));
}
}
+ else if ($this->debug) {
+ $this->_debug("S: ".ldap_count_entries($this->conn, $ldap_result)." record(s) found");
+ }
$this->result = new rcube_ldap_result($this->conn, $ldap_result, $base_dn, $filter, $vlv_count);