summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-10 17:16:26 +0000
committeralecpl <alec@alec.pl>2009-09-10 17:16:26 +0000
commit71047326faf2feaac3f4017e71dad8d2fa5b2e42 (patch)
tree0c8393031fb11048dcab59422de9e0ea95ae112f /program/include
parentb85fce1a7800f589069b4afa57d5adccf8a64a2f (diff)
- Fix LDAP partial result warning (#1485536)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_ldap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php
index 9854ac01b..82e1df270 100644
--- a/program/include/rcube_ldap.php
+++ b/program/include/rcube_ldap.php
@@ -388,7 +388,7 @@ class rcube_ldap extends rcube_addressbook
$res = null;
if ($this->conn && $dn)
{
- $this->ldap_result = ldap_read($this->conn, base64_decode($dn), '(objectclass=*)', array_values($this->fieldmap));
+ $this->ldap_result = @ldap_read($this->conn, base64_decode($dn), '(objectclass=*)', array_values($this->fieldmap));
$entry = @ldap_first_entry($this->conn, $this->ldap_result);
if ($entry && ($rec = ldap_get_attributes($this->conn, $entry)))
@@ -565,7 +565,7 @@ class rcube_ldap extends rcube_addressbook
{
$filter = $this->filter ? $this->filter : '(objectclass=*)';
$function = $this->prop['scope'] == 'sub' ? 'ldap_search' : ($this->prop['scope'] == 'base' ? 'ldap_read' : 'ldap_list');
- $this->ldap_result = $function($this->conn, $this->prop['base_dn'], $filter, array_values($this->fieldmap), 0, 0);
+ $this->ldap_result = @$function($this->conn, $this->prop['base_dn'], $filter, array_values($this->fieldmap), 0, 0);
return true;
}
else