瀏覽代碼

Fixing showing answers in score question surveys -refs #6270

unknown 11 年之前
父節點
當前提交
31bbd57acf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main/survey/survey.lib.php

+ 1 - 1
main/survey/survey.lib.php

@@ -2614,7 +2614,7 @@ class SurveyUtil {
 			foreach ($questions as $key => & $question) {
 			foreach ($questions as $key => & $question) {
 				// If the question type is a scoring then we have to format the answers differently
 				// If the question type is a scoring then we have to format the answers differently
 				if ($question['type'] == 'score') {
 				if ($question['type'] == 'score') {
-					if (is_array($second_parameter) && is_array($question) && is_array($all_answers)) {
+					if (is_array($question) && is_array($all_answers)) {
 						foreach ($all_answers[$question['question_id']] as $key => & $answer_array) {
 						foreach ($all_answers[$question['question_id']] as $key => & $answer_array) {
 							$second_parameter[$answer_array['option_id']] = $answer_array['value'];
 							$second_parameter[$answer_array['option_id']] = $answer_array['value'];
 						}
 						}