Fixed some typos

This commit is contained in:
paca70 2002-11-21 18:40:33 +00:00
parent b335cae1d3
commit ef62651f02

View File

@ -68,7 +68,7 @@ function auth_get_userinfo($username){
$CFG->ldap_objectclass="objectClass=*";
}
$user_info_result = ldap_read($ldap_connection,$user_dn,$objectclass, $search_attribs);
$user_info_result = ldap_read($ldap_connection,$user_dn,$CFG->ldap_objectclass, $search_attribs);
if ($user_info_result) {
$user_entry = ldap_get_entries($ldap_connection, $user_info_result);
foreach ($moodleattributes as $key=>$value){
@ -79,12 +79,6 @@ function auth_get_userinfo($username){
}
@ldap_close($ldap_connection);
//Hardcoded defaults
if(! isset($result['description'])) {
$result['description'] = "Description";
}
$result['country']='FI';
return $result;
}