MDL-48984 mod_lesson: explicitly close some recordsets

This commit is contained in:
Eloy Lafuente (stronk7) 2015-03-03 12:40:25 +01:00
parent 6230f717bf
commit 6442803f76
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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');