I've created a quiz with a maximum grade of "No grade", and a grading method of "Highest grade". I've also added questions to the quiz (each answer has a grade of "None", but the correct answer has a grade of "100%"). When a student submits the results they receive the following errors;
Warning: Division by zero in C:\Inetpub\wwwroot\moodle\mod\quiz\lib.php on line 2097
Warning: Division by zero in C:\Inetpub\wwwroot\moodle\mod\quiz\lib.php on line 1668
I've modified lib.php to resolve the issue for now, but I'm curious about other solutions. Should I have set the grading method to something else?