Fix SQL queries related to fulltext search engine - refs CT#8013

1.10.x
Yannick Warnier 9 years ago
parent 776be157d1
commit b9fe27560b
  1. 2
      main/exercice/question.class.php

@ -965,7 +965,7 @@ abstract class Question
$tbl_se_ref = Database::get_main_table(TABLE_MAIN_SEARCH_ENGINE_REF);
if ($addQs || $rmQs) {
//there's only one row per question on normal db and one document per question on search engine db
$sql = 'SELECT * FROM %
$sql = 'SELECT * FROM %s
WHERE course_code=\'%s\' AND tool_id=\'%s\' AND ref_id_second_level=%s LIMIT 1';
$sql = sprintf($sql, $tbl_se_ref, $course_id, TOOL_QUIZ, $this->id);
} else {

Loading…
Cancel
Save