Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-33398 Cron: fix wrong variable type in completion criterias

  • Loading branch information...
commit 854682fb170454b369c63af393ad62295e20160b 1 parent 24b464d
@FMCorz FMCorz authored danpoltawski committed
View
2  lib/completion/completion_criteria_course.php
@@ -190,7 +190,7 @@ public function cron() {
$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();
}
View
2  lib/completion/completion_criteria_date.php
@@ -180,7 +180,7 @@ public function cron() {
$rs = $DB->get_recordset_sql($sql, array(time()));
foreach ($rs as $record) {
$completion = new completion_criteria_completion((array) $record, DATA_OBJECT_FETCH_BY_KEY);
- $completion->mark_complete($record['timeend']);
+ $completion->mark_complete($record->timeend);
}
$rs->close();
}
View
2  lib/completion/completion_criteria_grade.php
@@ -216,7 +216,7 @@ public function cron() {
$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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.