mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-14679 fixed remaining old style set_field()s
This commit is contained in:
parent
dd88de0ebd
commit
f685e83030
26 changed files with 82 additions and 167 deletions
|
@ -2511,10 +2511,7 @@ function assignment_cron () {
|
|||
$realuser = clone($USER);
|
||||
|
||||
foreach ($submissions as $key => $submission) {
|
||||
if (! $DB->set_field("assignment_submissions", "mailed", "1", array("id"=>$submission->id))) {
|
||||
echo "Could not update the mailed field for id $submission->id. Not mailed.\n";
|
||||
unset($submissions[$key]);
|
||||
}
|
||||
$DB->set_field("assignment_submissions", "mailed", "1", array("id"=>$submission->id));
|
||||
}
|
||||
|
||||
$timenow = time();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue