From 44996d00f9be6f52a0addf0d5fbdbf9343f76c06 Mon Sep 17 00:00:00 2001 From: paca70 Date: Tue, 25 Feb 2003 10:31:59 +0000 Subject: [PATCH] Fixed some typos --- auth/ldap/lib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index ba71230933..9e674c278d 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -50,7 +50,6 @@ function auth_user_login ($username, $password) { $ldap_login = @ldap_bind($ldap_connection, $ldap_user_dn, $password); ldap_close($ldap_connection); if ($ldap_login) { - ldap_close($ldap_connection); return true; } } else { @@ -67,7 +66,7 @@ function auth_get_userinfo($username){ global $CFG; $config = (array)$CFG; - $moodleattributes = auth_ldap_attributes(); + $attrmap = auth_ldap_attributes(); $ldap_connection=auth_ldap_connect(); -- 2.39.5