mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-25708' of git://github.com/stronk7/moodle
This commit is contained in:
commit
8afc38bd39
53 changed files with 514 additions and 526 deletions
|
@ -194,7 +194,9 @@ function send_welcome_messages($orderdata) {
|
|||
WHERE e.id IN(" . implode(',', $orderdata) . ")
|
||||
ORDER BY e.userid";
|
||||
|
||||
if (!$rs = $DB->get_recordset_sql($sql)) {
|
||||
$rs = $DB->get_recordset_sql($sql);
|
||||
if (!$rs->valid()) {
|
||||
$rs->close(); // Not going to iterate (but exit), close rs
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -247,7 +249,7 @@ function send_welcome_messages($orderdata) {
|
|||
}
|
||||
while ($ei);
|
||||
|
||||
$rs->close();
|
||||
$rs->close(); // end of iteration, close rs
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue