summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authortill <till@php.net>2008-04-01 08:11:13 +0000
committertill <till@php.net>2008-04-01 08:11:13 +0000
commit736307aab4b9e2963d51a316d177cff36c7a2b4e (patch)
treef5e35f85c8033676e27b03df0fa2faf76b29aff7 /program
parent829e025d146716757aa752448cc51b878479cd3a (diff)
* debugging bind (simplyfied if/else)
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_ldap.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/program/include/rcube_ldap.inc b/program/include/rcube_ldap.inc
index 29e7faa6b..5403084b4 100644
--- a/program/include/rcube_ldap.inc
+++ b/program/include/rcube_ldap.inc
@@ -119,20 +119,20 @@ class rcube_ldap
*/
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(
+ }
+
+ raise_error(array(
'code' => ldap_errno($this->conn),
'type' => 'ldap',
'message' => "Bind failed for dn=$dn: ".ldap_error($this->conn)),
- true);
- }
-
+ true);
+
return false;
}