소스 검색

Fixing query.

Julio Montoya 10 년 전
부모
커밋
3488d5149a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main/exercice/question_pool.php

+ 1 - 1
main/exercice/question_pool.php

@@ -462,7 +462,7 @@ if ($exerciseId > 0) {
 	$level_where = '';
 	$from = '';
 	if (isset($courseCategoryId) && $courseCategoryId > 0) {
-		$from = " INNER JOIN  $TBL_COURSE_REL_CATEGORY crc ON crc.question_id=qu.id  AND crc.c_id= qu.c_id ";
+		$from = " INNER JOIN  $TBL_COURSE_REL_CATEGORY crc ON crc.question_id=q.id  AND crc.c_id= q.c_id ";
 		$level_where .= " AND
 		        crc.c_id = $selected_course AND
 		        crc.category_id = $courseCategoryId";