Fix a little big bug - refs #7212

1.9.x
Imanol Losada 12 years ago
parent a242d7e1e9
commit a0608f8afe
  1. 4
      main/exercice/calculated_answer.class.php

@ -260,7 +260,7 @@ class CalculatedAnswer extends Question
*/
public function isAnswered()
{
$table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ATTEMPT);
$table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ATTEMPT);var_dump($this->course);
$result = Database::select(
'question_id',
$table,
@ -268,7 +268,7 @@ class CalculatedAnswer extends Question
'where' => array(
'question_id = ? AND course_code = ?' => array(
$this->id,
$this->course['id']
$this->course['code']
)
)
)

Loading…
Cancel
Save