Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-33398b-21' of git://github.com/srynot4sale/moodle i…

…nto MOODLE_21_STABLE
  • Loading branch information...
commit 01ab2bb505a46b5120a440f968d167af26d4ec4c 2 parents e3d8f34 + 28e0b61
@danpoltawski danpoltawski authored
View
2  lib/completion/completion_criteria_activity.php
@@ -229,7 +229,7 @@ public function cron() {
// Loop through completions, and mark as complete
$rs = $DB->get_recordset_sql($sql);
foreach ($rs as $record) {
- $completion = new completion_criteria_completion($record, DATA_OBJECT_FETCH_BY_KEY);
+ $completion = new completion_criteria_completion((array) $record, DATA_OBJECT_FETCH_BY_KEY);
$completion->mark_complete($record->timecompleted);
}
$rs->close();
View
2  lib/completion/completion_criteria_course.php
@@ -189,7 +189,7 @@ public function cron() {
// Loop through completions, and mark as complete
$rs = $DB->get_recordset_sql($sql);
foreach ($rs as $record) {
- $completion = new completion_criteria_completion($record, DATA_OBJECT_FETCH_BY_KEY);
+ $completion = new completion_criteria_completion((array) $record, DATA_OBJECT_FETCH_BY_KEY);
$completion->mark_complete($record['timecompleted']);
}
$rs->close();
View
2  lib/completion/completion_criteria_date.php
@@ -179,7 +179,7 @@ public function cron() {
// Loop through completions, and mark as complete
$rs = $DB->get_recordset_sql($sql, array(time()));
foreach ($rs as $record) {
- $completion = new completion_criteria_completion($record, DATA_OBJECT_FETCH_BY_KEY);
+ $completion = new completion_criteria_completion((array) $record, DATA_OBJECT_FETCH_BY_KEY);
$completion->mark_complete($record['timeend']);
}
$rs->close();
View
2  lib/completion/completion_criteria_duration.php
@@ -225,7 +225,7 @@ public function cron() {
$now = time();
$rs = $DB->get_recordset_sql($sql, array($now, $now));
foreach ($rs as $record) {
- $completion = new completion_criteria_completion($record, DATA_OBJECT_FETCH_BY_KEY);
+ $completion = new completion_criteria_completion((array) $record, DATA_OBJECT_FETCH_BY_KEY);
// Use time start if not 0, otherwise use timeenrolled
if ($record->otimestart) {
View
2  lib/completion/completion_criteria_grade.php
@@ -215,7 +215,7 @@ public function cron() {
// Loop through completions, and mark as complete
$rs = $DB->get_recordset_sql($sql);
foreach ($rs as $record) {
- $completion = new completion_criteria_completion($record, DATA_OBJECT_FETCH_BY_KEY);
+ $completion = new completion_criteria_completion((array) $record, DATA_OBJECT_FETCH_BY_KEY);
$completion->mark_complete($record['timecompleted']);
}
$rs->close();
Please sign in to comment.
Something went wrong with that request. Please try again.