|
@@ -170,6 +170,10 @@ function import_exercise($file)
|
|
|
|
|
|
$question = new Ims2Question();
|
|
|
$question->type = $question_array['type'];
|
|
|
+ if (empty($question->type)) {
|
|
|
+
|
|
|
+ $question->type = MCUA;
|
|
|
+ }
|
|
|
$question->setAnswer();
|
|
|
if (strlen($question_array['title']) < 50) {
|
|
|
$question->updateTitle(formatText(strip_tags($question_array['title'])) . '...');
|