diff --git a/main/inc/lib/exercise_show_functions.lib.php b/main/inc/lib/exercise_show_functions.lib.php index 6064dccd31..e9795ad8dd 100755 --- a/main/inc/lib/exercise_show_functions.lib.php +++ b/main/inc/lib/exercise_show_functions.lib.php @@ -211,9 +211,9 @@ class ExerciseShowFunctions if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { if ($showTotalScoreAndUserChoices) { - $hide_expected_answer = true; - } else { $hide_expected_answer = false; + } else { + $hide_expected_answer = true; } } @@ -300,9 +300,9 @@ class ExerciseShowFunctions if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { if ($showTotalScoreAndUserChoices) { - $hide_expected_answer = true; - } else { $hide_expected_answer = false; + } else { + $hide_expected_answer = true; } } @@ -396,9 +396,9 @@ class ExerciseShowFunctions if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { if ($showTotalScoreAndUserChoices) { - $hide_expected_answer = true; - } else { $hide_expected_answer = false; + } else { + $hide_expected_answer = true; } } @@ -499,9 +499,9 @@ class ExerciseShowFunctions if ($resultsDisabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { if ($showTotalScoreAndUserChoices) { - $hide_expected_answer = true; - } else { $hide_expected_answer = false; + } else { + $hide_expected_answer = true; } }