소스 검색

Merge branch '1.9.x' of github.com:chamilo/chamilo-lms into 1.9.x

Yannick Warnier 11 년 전
부모
커밋
9d18a2310a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main/survey/survey.lib.php

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

@@ -2617,7 +2617,7 @@ class SurveyUtil {
 			foreach ($questions as $key => & $question) {
 				// If the question type is a scoring then we have to format the answers differently
 				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) {
 							$second_parameter[$answer_array['option_id']] = $answer_array['value'];
 						}