diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-02-14 11:58:28 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-02-14 11:58:28 +0100 |
commit | 807c3d0d9745e850d08ceb2a1d6c018f8b791706 (patch) | |
tree | 084d254cf7adb9d9898583b4d22d74e20639f9e5 /program/lib/Roundcube/rcube_ldap_result.php | |
parent | c8a714cca4978395292e82ed1971fbf92fa78487 (diff) |
Optimmize memory usage by only fetching the necessary attributes used for contacts listing
Diffstat (limited to 'program/lib/Roundcube/rcube_ldap_result.php')
-rw-r--r-- | program/lib/Roundcube/rcube_ldap_result.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_ldap_result.php b/program/lib/Roundcube/rcube_ldap_result.php index 92c289753..efc3331bc 100644 --- a/program/lib/Roundcube/rcube_ldap_result.php +++ b/program/lib/Roundcube/rcube_ldap_result.php @@ -100,7 +100,9 @@ class rcube_ldap_result implements Iterator function current() { - return ldap_get_attributes($this->conn, $this->current); + $attrib = ldap_get_attributes($this->conn, $this->current); + $attrib['dn'] = ldap_get_dn($this->conn, $this->current); + return $attrib; } function key() |