]> git.mjollnir.org Git - moodle.git/commitdiff
Corrected some typos
authorpaca70 <paca70>
Mon, 18 Aug 2003 08:12:31 +0000 (08:12 +0000)
committerpaca70 <paca70>
Mon, 18 Aug 2003 08:12:31 +0000 (08:12 +0000)
auth/ldap/lib.php

index 85e6b2582ff64a3a605f9ae8f56b3dc42252f5ff..0fd1555148c5f0d3620e8905e96c16a74a1cb877 100644 (file)
@@ -79,7 +79,7 @@ function auth_get_userinfo($username){
     $search_attribs = array();
   
     foreach ($attrmap as $key=>$value) {
-        if (!in_array($value, $search_attribs) {
+        if (!in_array($value, $search_attribs)) {
             array_push($search_attribs, $value);
         }    
     }
@@ -95,8 +95,8 @@ function auth_get_userinfo($username){
     if ($user_info_result) {
         $user_entry = ldap_get_entries($ldap_connection, $user_info_result);
         foreach ($attrmap as $key=>$value){
-            if(isset($user_entry[0]strtolower([$value])[0])){
-                $result[$key]=$user_entry[0]strtolower([$value])[0];
+            if(isset($user_entry[0][strtolower($value)][0])){
+                $result[$key]=$user_entry[0][strtolower($value)][0];
             }
         }
     }