diff --git a/exercises/cloze_exercise.php b/exercises/cloze_exercise.php index c23b4a5ff8635bf5a0e2b06815e50499a340c3d2..3fceddfb604b2dd903216507b46f0af2fac4fa89 100644 --- a/exercises/cloze_exercise.php +++ b/exercises/cloze_exercise.php @@ -214,7 +214,7 @@ class cloze_exercise extends Exercise } /** - * Returns all currenty unassigned answers for the given solution. + * Returns all currently unassigned answers for the given solution. */ public function availableAnswers($solution) { @@ -227,7 +227,7 @@ class cloze_exercise extends Exercise if ($i !== false) { unset($response[$i]); - } else { + } else if ($option['text'] !== '') { $answers[] = $option['text']; } }