]> git.mjollnir.org Git - moodle.git/commitdiff
iMerged from stable
authormoodler <moodler>
Fri, 3 Sep 2004 03:19:31 +0000 (03:19 +0000)
committermoodler <moodler>
Fri, 3 Sep 2004 03:19:31 +0000 (03:19 +0000)
enrol/database/enrol.php

index 4fb3617fbe7e40c3ff5c004642b7a2f39ebb0247..4a901bd69a9b0d0218e40bf3c926a03cec12ec8c 100644 (file)
@@ -36,7 +36,7 @@ function get_student_courses(&$user) {
         foreach ($user->student as $courseid=>$value) {
         
             /// Get the value of the local course field
-            $localcoursevalue = getfield("course", $CFG->enrol_localcoursefield, "id", $courseid);
+            $localcoursevalue = get_field("course", $CFG->enrol_localcoursefield, "id", $courseid);
             
             /// Find a record in the external database that matches the local course field and local user field
             /// to the respective remote fields