]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14679 fixed DML
authorskodak <skodak>
Sat, 28 Mar 2009 15:59:26 +0000 (15:59 +0000)
committerskodak <skodak>
Sat, 28 Mar 2009 15:59:26 +0000 (15:59 +0000)
mod/feedback/lib.php

index ffa869d316744da4e729433939cb4e99a525a3b6..b788ed9f23f9662991f96ef48c1e5c5d49166568 100644 (file)
@@ -182,7 +182,7 @@ function feedback_get_recent_mod_activity(&$activities, &$index, $timemodified,
     if ($COURSE->id == $courseid) {
         $course = $COURSE;
     } else {
-        $course = get_record('course', 'id', $courseid);
+        $course = $DB->get_record('course', array('id'=>$courseid));
     }
 
     $modinfo =& get_fast_modinfo($course);