mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 23:20:09 +01:00
MDL-48984 mod_lesson: explicitly close some recordsets
This commit is contained in:
parent
6230f717bf
commit
6442803f76
@ -262,6 +262,7 @@ class restore_lesson_activity_structure_step extends restore_activity_structure_
|
||||
$badanswer->answerformat = FORMAT_MOODLE;
|
||||
$DB->update_record('lesson_answers', $badanswer);
|
||||
}
|
||||
$badanswers->close();
|
||||
|
||||
// Re-map the dependency and activitylink information
|
||||
// If a depency or activitylink has no mapping in the backup data then it could either be a duplication of a
|
||||
|
@ -172,6 +172,7 @@ function xmldb_lesson_upgrade($oldversion) {
|
||||
$badanswer->answerformat = FORMAT_MOODLE;
|
||||
$DB->update_record('lesson_answers', $badanswer);
|
||||
}
|
||||
$badanswers->close();
|
||||
|
||||
// Lesson savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2015030301, 'lesson');
|
||||
|
Loading…
x
Reference in New Issue
Block a user