Skip to content

Commit 4a0115e

Browse files
committed
Strict comparison
1 parent 49eed73 commit 4a0115e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Auth/Ldap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private function makeException($description, $type = null)
159159
$errNo = @ldap_errno($this->ldap);
160160

161161
// Decide exception type and return
162-
if ($type) {
162+
if ($type !== null) {
163163
if ($errNo !== 0) {
164164
// Only log real LDAP errors; not success
165165
Logger::error($description.'; cause: \''.ldap_error($this->ldap).'\' (0x'.dechex($errNo).')');

0 commit comments

Comments
 (0)