Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-20728 ims-cc import - fix importing of quiz with only 1 question

  • Loading branch information...
commit 035d0f2eddc76a49e7ea4e670f3877cd5da76ccd 1 parent 514cda9
@stronk7 stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  backup/cc/entity.quiz.class.php
View
2  backup/cc/entity.quiz.class.php
@@ -98,7 +98,7 @@ private function generate_instances () {
$questions = $this->get_questions($assessment, $last_question_id, $last_answer_id, dirname($assessment_file), $is_question_bank);
$question_count = count($questions);
- if ($question_count > 1) {
+ if (!empty($question_count)) {
$last_instance_id++;
Please sign in to comment.
Something went wrong with that request. Please try again.