Changeset 736307a in github


Ignore:
Timestamp:
Apr 1, 2008 4:11:13 AM (5 years ago)
Author:
till <till@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
369efc9
Parents:
829e025
Message:
  • debugging bind (simplyfied if/else)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_ldap.inc

    r72c7226 r736307a  
    120120  function bind($dn, $pass) 
    121121  { 
    122     if (!$this->conn) 
     122    if (!$this->conn) { 
    123123      return false; 
    124      
    125     if (@ldap_bind($this->conn, $dn, $pass)) 
     124    } 
     125     
     126    if (@ldap_bind($this->conn, $dn, $pass)) { 
    126127      return true; 
    127     else 
    128     { 
    129       raise_error(array( 
     128    } 
     129 
     130    raise_error(array( 
    130131        'code' => ldap_errno($this->conn), 
    131132        'type' => 'ldap', 
    132133        'message' => "Bind failed for dn=$dn: ".ldap_error($this->conn)), 
    133       true); 
    134     } 
    135      
     134        true); 
     135 
    136136    return false; 
    137137  } 
Note: See TracChangeset for help on using the changeset viewer.