From 3ebda8c7d8695eeeca3874245f74b52cabd920a9 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 18 Jun 2013 15:44:08 +0200 Subject: Ignore ldap_search warnings (like in the old code) --- program/lib/Roundcube/rcube_ldap_generic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/lib/Roundcube/rcube_ldap_generic.php') diff --git a/program/lib/Roundcube/rcube_ldap_generic.php b/program/lib/Roundcube/rcube_ldap_generic.php index e845727ca..651e524db 100644 --- a/program/lib/Roundcube/rcube_ldap_generic.php +++ b/program/lib/Roundcube/rcube_ldap_generic.php @@ -399,7 +399,7 @@ class rcube_ldap_generic } // only fetch dn for count (should keep the payload low) - if ($ldap_result = $function($this->conn, $base_dn, $filter, + if ($ldap_result = @$function($this->conn, $base_dn, $filter, $attrs, 0, (int)$this->config['sizelimit'], (int)$this->config['timelimit']) ) { // when running on a patched PHP we can use the extended functions to retrieve the total count from the LDAP search result -- cgit v1.2.3