Permalink
Browse files

Fixed some typos

  • Loading branch information...
1 parent b335cae commit ef62651f02bf7db2b52be93c806225bc81166561 paca70 committed Nov 21, 2002
Showing with 3 additions and 9 deletions.
  1. +3 −9 auth/ldap/lib.php
View
@@ -67,8 +67,8 @@ function auth_get_userinfo($username){
if (! isset($CFG->ldap_objectclass)) {
$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,13 +79,7 @@ function auth_get_userinfo($username){
}
@ldap_close($ldap_connection);
- //Hardcoded defaults
- if(! isset($result['description'])) {
- $result['description'] = "Description";
- }
- $result['country']='FI';
-
- return $result;
+ return $result;
}
function auth_get_userlist() {

0 comments on commit ef62651

Please sign in to comment.