From 2feb4f1bbe84974a14cd7327eaf4e81608c7f597 Mon Sep 17 00:00:00 2001 From: William Mead Date: Tue, 16 Jan 2024 17:47:20 +0100 Subject: [PATCH] Refactored getVersion method --- htdocs/core/class/ldap.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php index 56ba86b7800..93bd14bbb2e 100644 --- a/htdocs/core/class/ldap.class.php +++ b/htdocs/core/class/ldap.class.php @@ -481,14 +481,13 @@ class Ldap /** - * Verification de la version du serveur ldap. + * Verify LDAP server version * - * @return string version + * @return int version */ public function getVersion() { - $version = 0; - $version = @ldap_get_option($this->connection, LDAP_OPT_PROTOCOL_VERSION, $version); + @ldap_get_option($this->connection, LDAP_OPT_PROTOCOL_VERSION, $version); return $version; }