diff --git a/Modules/Test/classes/Results/class.ilTestResultsFactory.php b/Modules/Test/classes/Results/class.ilTestResultsFactory.php index 739469e0e0d1..34b0a9fa328a 100644 --- a/Modules/Test/classes/Results/class.ilTestResultsFactory.php +++ b/Modules/Test/classes/Results/class.ilTestResultsFactory.php @@ -89,9 +89,9 @@ protected function buildPassResults( $title = $qresult['title']; $question_score = $qresult['max']; $usr_score = $qresult['reached']; - $workedthrough = (bool)$qresult['workedthrough']; - $answered = (bool)$qresult['answered']; - $requested_hints = (int)$qresult['requested_hints']; + $workedthrough = (bool) $qresult['workedthrough']; + $answered = (bool) $qresult['answered']; + $requested_hints = (int) $qresult['requested_hints']; $question_gui = $test_obj->createQuestionGUI("", $qid); @@ -100,7 +100,7 @@ protected function buildPassResults( $graphical_output = true; $show_correct_solution = false; - $show_inline_feedback = $settings->getShowFeedback(); + $show_feedback = $settings->getShowFeedback(); $usr_solution = $question_gui->getSolutionOutput( $active_id, $pass_id, @@ -133,6 +133,7 @@ protected function buildPassResults( $graphical_output = false; $show_correct_solution = true; + $show_feedback = false; $show_inline_feedback = false; $best_solution = $question_gui->getSolutionOutput( $active_id, @@ -195,7 +196,7 @@ protected function getPassResultsSettings( $show_optional_questions = true; $show_best_solution = $is_user_output ? $settings_result->getShowSolutionListComparison() : - (bool)ilSession::get('tst_results_show_best_solutions'); + (bool) ilSession::get('tst_results_show_best_solutions'); $show_feedback = $settings_result->getShowSolutionFeedback(); $show_question_text_only = $settings_result->getShowSolutionAnswersOnly(); $show_content_for_recapitulation = $settings_result->getShowSolutionSuggested();