Permalink
Browse files

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

…nto MOODLE_21_STABLE
  • Loading branch information...
2 parents e3d8f34 + 28e0b61 commit 01ab2bb505a46b5120a440f968d167af26d4ec4c @danpoltawski danpoltawski committed May 30, 2012
@@ -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();
@@ -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();
@@ -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();
@@ -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) {
@@ -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();

0 comments on commit 01ab2bb

Please sign in to comment.