]> git.mjollnir.org Git - moodle.git/commitdiff
I hadn't known that ! has higher precedence than ==
authorgustav_delius <gustav_delius>
Sun, 19 Mar 2006 11:02:36 +0000 (11:02 +0000)
committergustav_delius <gustav_delius>
Sun, 19 Mar 2006 11:02:36 +0000 (11:02 +0000)
question/questiontypes/questiontype.php

index a4bb8c3c66ad18cf72adbead36f3e6c8319ae4de..7702da4e239e754ed0c72e966db04fb9a2708bf6 100644 (file)
@@ -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;
         }