Skip to content

Commit

Permalink
Revert "Fix showing resuls for calculated answers - refs #8237"
Browse files Browse the repository at this point in the history
This reverts commit 2160752.
  • Loading branch information
AngelFQC committed May 20, 2016
1 parent ee874ac commit ee763e8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main/exercice/exercise.class.php
Expand Up @@ -3826,11 +3826,9 @@ public function manage_answer(
$queryfill = "SELECT answer FROM ".$TBL_TRACK_ATTEMPT."
WHERE
exe_id = '".$exeId."' AND
question_id= ".intval($questionId);
question_id= ".intval($questionId)."";
$resfill = Database::query($queryfill);
$rowFill = Database::fetch_assoc($resfill);
$answer = $rowFill['answer'];
$questionScore = $rowFill['marks'];
$answer = Database::result($resfill, 0, 'answer');
}

for ($i = 0; $i < count($realCorrectTags); $i++) {
Expand Down

0 comments on commit ee763e8

Please sign in to comment.