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; }