]> git.mjollnir.org Git - moodle.git/commit
MDL-16362 "Quiz - bar graph on results screen" there was a bug in my code that would...
authorjamiesensei <jamiesensei>
Mon, 15 Sep 2008 13:38:31 +0000 (13:38 +0000)
committerjamiesensei <jamiesensei>
Mon, 15 Sep 2008 13:38:31 +0000 (13:38 +0000)
commit2a1995a4765bd0596915f18b6079122dd759d482
tree57426d33a0020c95f017b389c466f00cc31ea215
parent795ad63034b8daecd84add1a560d28ba11e0271f
MDL-16362 "Quiz - bar graph on results screen" there was a bug in my code that would put the graph generation code into an infinite loop if the overall grade for the quiz is 0. Since the change in the type of the field for quiz->grade the old test for quiz->grade being zero doesn't work. Using $quiz->grade as a bool does not work ($quiz->grade is now a string 0.0000), since Moodle 2.0 need to use $quiz->grade == 0.
mod/quiz/report/overview/report.php