MDL-33398 Cron: fix wrong variable type in completion criterias
[moodle.git] / lib / completion / completion_criteria_grade.php
index 22a924f..6bc32ed 100644 (file)
@@ -216,7 +216,7 @@ class completion_criteria_grade extends completion_criteria {
         $rs = $DB->get_recordset_sql($sql);
         foreach ($rs as $record) {
             $completion = new completion_criteria_completion((array) $record, DATA_OBJECT_FETCH_BY_KEY);
-            $completion->mark_complete($record['timecompleted']);
+            $completion->mark_complete($record->timecompleted);
         }
         $rs->close();
     }