mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-47569 backup: Do not close questions tag if never opened
This can happen when restoring quizzes that do not have any questions.
This commit is contained in:
parent
d9e9e79954
commit
3315c01e0f
1 changed files with 3 additions and 1 deletions
|
@ -1292,7 +1292,9 @@ class moodle1_question_bank_handler extends moodle1_xml_handler {
|
|||
* Closes the questions wrapper
|
||||
*/
|
||||
public function on_questions_end() {
|
||||
$this->xmlwriter->end_tag('questions');
|
||||
if ($this->questionswrapperwritten) {
|
||||
$this->xmlwriter->end_tag('questions');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue