We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49eed73 commit 4a0115eCopy full SHA for 4a0115e
lib/Auth/Ldap.php
@@ -159,7 +159,7 @@ private function makeException($description, $type = null)
159
$errNo = @ldap_errno($this->ldap);
160
161
// Decide exception type and return
162
- if ($type) {
+ if ($type !== null) {
163
if ($errNo !== 0) {
164
// Only log real LDAP errors; not success
165
Logger::error($description.'; cause: \''.ldap_error($this->ldap).'\' (0x'.dechex($errNo).')');
0 commit comments