From 4217b5c1104d4b2b3342a48ad46012da3a78a721 Mon Sep 17 00:00:00 2001 From: Thorsten Rinne Date: Fri, 26 Jul 2024 12:00:36 +0200 Subject: [PATCH] fix: there's no connection if the connection didn't worked --- phpmyfaq/src/phpMyFAQ/Ldap.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/phpmyfaq/src/phpMyFAQ/Ldap.php b/phpmyfaq/src/phpMyFAQ/Ldap.php index 4798965c68..5a5c203ff0 100755 --- a/phpmyfaq/src/phpMyFAQ/Ldap.php +++ b/phpmyfaq/src/phpMyFAQ/Ldap.php @@ -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; }