Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-16041

Grade of new tests are zero!

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.2
    • 2.0
    • Quiz
    • None
    • MOODLE_19_STABLE
    • MOODLE_20_STABLE

    Description

      Hi,

      I was wondering why it takes so long to get a quiz-report. It was the picture that overviewgraph.php draws. There is a division by zero in line 60:
      $bandwidth = $quiz->grade / $bands;
      because $bands is by default zero.

      Even when I change maxgrade by hand - I have to do it twice at first time.

      After that, there's no division by zero and everything works fine!

      Attachments

        Activity

          People

            jamiesensei Jamie Pratt
            schorsch101 Dennis Meyer
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10