Permalink
Browse files

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

  • Loading branch information...
1 parent 514cda9 commit 035d0f2eddc76a49e7ea4e670f3877cd5da76ccd @stronk7 stronk7 committed Nov 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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++;

0 comments on commit 035d0f2

Please sign in to comment.