Skip to content

Commit

Permalink
fix: there's no connection if the connection didn't worked
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jul 26, 2024
1 parent 7be3c17 commit 4217b5c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions phpmyfaq/src/phpMyFAQ/Ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ public function connect(
$this->ds = ldap_connect($ldapServer . ':' . $ldapPort);

if (!$this->ds) {
$this->error = sprintf(
'Unable to connect to LDAP server (Error: %s)',
ldap_error($this->ds)
);
$this->errno = ldap_errno($this->ds);
$this->error = 'Unable to connect to LDAP server';

return false;
}
Expand Down

0 comments on commit 4217b5c

Please sign in to comment.