thomascube
2008-11-23 b4b31d62afc42c3011aa9a3fc62cefbe89f0f4d2
Suppress repeated ldap warnings + little codestyle fix

1 files modified
4 ■■■■ changed files
program/include/rcube_ldap.php 4 ●●●● patch | view | raw | blame | history
program/include/rcube_ldap.php
@@ -162,7 +162,7 @@
      return false;
    }
    
    if (ldap_bind($this->conn, $dn, $pass)) {
    if (@ldap_bind($this->conn, $dn, $pass)) {
      return true;
    }
@@ -560,7 +560,7 @@
   */
  function _exec_search()
  {
    if ($this->conn && $this->filter)
    if ($this->ready && $this->filter)
    {
      $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'], $this->filter, array_values($this->fieldmap), 0, 0);