Skip to content

Commit

Permalink
Fix Multiple Answer True/False/Don't know : Remove answer - Refs #8179
Browse files Browse the repository at this point in the history
  • Loading branch information
jloguercio committed Jun 1, 2016
1 parent 4a11627 commit 0a3be68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/exercice/multiple_answer_true_false.class.php
Expand Up @@ -34,7 +34,7 @@ public function createAnswersForm($form)
{
$nb_answers = isset($_POST['nb_answers']) ? $_POST['nb_answers'] : 4;
// The previous default value was 2. See task #1759.
$nb_answers += isset($_POST['lessAnswers']) ? -1 : isset($_POST['moreAnswers']) ? 1 : 0;
$nb_answers += (isset($_POST['lessAnswers']) ? -1 : (isset($_POST['moreAnswers']) ? 1 : 0));

$course_id = api_get_course_int_id();
$obj_ex = $_SESSION['objExercise'];
Expand Down

0 comments on commit 0a3be68

Please sign in to comment.