From 0bba7f33fca95e8fb399d0eeeed9c624bff27874 Mon Sep 17 00:00:00 2001 From: Julian Prud'homme Date: Wed, 2 May 2007 13:41:15 +0200 Subject: [PATCH] [svn r12230] Fix a bug with the scoring for students --- main/exercice/exercise_show.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/exercice/exercise_show.php b/main/exercice/exercise_show.php index 6527630049..16371181d1 100644 --- a/main/exercice/exercise_show.php +++ b/main/exercice/exercise_show.php @@ -806,6 +806,11 @@ $result =api_sql_query($query, __FILE__, __LINE__); $arrmarks[] = $questionId; echo ''; } + } + else{ + if($questionScore==-1){ + $questionScore=0; + } }?>