mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-33398 Cron: fix wrong variable type in completion criterias
This commit is contained in:
parent
9c6e153888
commit
ccc604a24d
@ -194,7 +194,7 @@ class completion_criteria_course 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();
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ class completion_criteria_date extends completion_criteria {
|
||||
$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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user