thomascube
2008-04-05 e70d6ea64e711096af36b1234f8545b870ea5f45
program/include/rcube_ldap.inc
@@ -119,19 +119,19 @@
   */
  function bind($dn, $pass)
  {
    if (!$this->conn)
    if (!$this->conn) {
      return false;
    }
    
    if (@ldap_bind($this->conn, $dn, $pass))
    if (ldap_bind($this->conn, $dn, $pass)) {
      return true;
    else
    {
    }
      raise_error(array(
        'code' => ldap_errno($this->conn),
        'type' => 'ldap',
        'message' => "Bind failed for dn=$dn: ".ldap_error($this->conn)),
      true);
    }
    
    return false;
  }