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

This commit is contained in:
Frederic Massart 2012-05-31 10:19:15 +08:00 committed by Dan Poltawski
parent 9c6e153888
commit ccc604a24d
3 changed files with 3 additions and 3 deletions

View File

@ -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();
}

View File

@ -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();
}

View 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();
}