From ee763e840555125e82549213e040178961934525 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Fri, 20 May 2016 10:42:30 -0500 Subject: [PATCH] Revert "Fix showing resuls for calculated answers - refs #8237" This reverts commit 2160752128c61da7413a449874878f79610b1b30. --- main/exercice/exercise.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php index da6441a1c6..15faed30c6 100755 --- a/main/exercice/exercise.class.php +++ b/main/exercice/exercise.class.php @@ -3826,11 +3826,9 @@ class Exercise $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++) {