Skip to content

Commit

Permalink
quiz-data - Fix whole import
Browse files Browse the repository at this point in the history
  • Loading branch information
EJMFarrow committed Dec 9, 2024
1 parent 96f7669 commit 42d99fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/import_quiz.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function __construct(cli_helper $clihelper, array $moodleinstances) {
echo "\nUnable to access or parse manifest file: {$this->nonquizmanifestpath}\nAborting.\n";
$this->call_exit();
}
if ($this->nonquizmanifestcontents->context->contextlevel === cli_helper::get_context_level('course')) {
if (!$instanceid && $this->nonquizmanifestcontents->context->contextlevel === cli_helper::get_context_level('course')) {
$instanceid = $this->nonquizmanifestcontents->context->instanceid;
}
}
Expand Down

0 comments on commit 42d99fc

Please sign in to comment.