From 96e5e2e251412f0954083cde00ca24ae9dd83345 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sun, 19 Mar 2006 11:02:36 +0000 Subject: [PATCH] I hadn't known that ! has higher precedence than == --- question/questiontypes/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/questiontypes/questiontype.php b/question/questiontypes/questiontype.php index a4bb8c3c66..7702da4e23 100644 --- a/question/questiontypes/questiontype.php +++ b/question/questiontypes/questiontype.php @@ -458,7 +458,7 @@ class quiz_default_questiontype { $grade = ''; if ($question->maxgrade and $options->scores) { if ($cmoptions->optionflags & QUIZ_ADAPTIVE) { - $grade = (!$state->last_graded->event == QUESTION_EVENTGRADE) ? '--/' : round($state->last_graded->grade, $cmoptions->decimalpoints).'/'; + $grade = (!($state->last_graded->event == QUESTION_EVENTGRADE)) ? '--/' : round($state->last_graded->grade, $cmoptions->decimalpoints).'/'; } $grade .= $question->maxgrade; } -- 2.39.5