]> git.mjollnir.org Git - moodle.git/commitdiff
Removing mdl_ in sync_metacourse
authormjollnir_ <mjollnir_>
Tue, 8 Feb 2005 03:39:40 +0000 (03:39 +0000)
committermjollnir_ <mjollnir_>
Tue, 8 Feb 2005 03:39:40 +0000 (03:39 +0000)
lib/moodlelib.php

index 70f69a857193a381e893501801641079a55b6728..5520e236157660ccb96deaf1d151a6db395d0f6d 100644 (file)
@@ -1286,7 +1286,7 @@ function sync_metacourse($metacourseid) {
     if ($enrolments = get_records('user_students','course',$metacourseid,'','id,userid')) {
         foreach ($enrolments as $enrol) {
             if ($maxmin = get_record_sql("SELECT min(timestart) AS timestart, max(timeend) AS timeend
-               FROM mdl_user_students u JOIN {$CFG->prefix}course_meta mc ON u.course = mc.child_course WHERE userid = $enrol->userid
+               FROM {$CFG->prefix}user_students u JOIN {$CFG->prefix}course_meta mc ON u.course = mc.child_course WHERE userid = $enrol->userid
                AND mc.parent_course = $metacourseid")) {
                 $enrol->timestart = $maxmin->timestart;
                 $enrol->timeend = $maxmin->timeend;