]> git.mjollnir.org Git - moodle.git/commitdiff
Provisional fix for the "100% < anything else" bug.
authordefacer <defacer>
Wed, 26 Jan 2005 19:59:08 +0000 (19:59 +0000)
committerdefacer <defacer>
Wed, 26 Jan 2005 19:59:08 +0000 (19:59 +0000)
If it's compatible with Postgres, then cool!

blocks/quiz_results/block_quiz_results.php

index b4081ad1c84ee2067ff2e5f0e7743674997ab114..36672d9f14ceba52855964ce31987752f91a64e2 100644 (file)
@@ -49,7 +49,7 @@ class block_quiz_results extends block_base {
         }
 
         // Get the grades for this quiz
-        $grades = get_records('quiz_grades', 'quiz', $quizid, 'grade, timemodified DESC');
+        $grades = get_records('quiz_grades', 'quiz', $quizid, 'grade + 0, timemodified DESC');
 
         if(empty($grades)) {
             // No grades, sorry