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

Divide by zero errors on page listing courses in a category when in edit mode

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7
    • 1.8.3, 1.9
    • General
    • None

    Description

      In Add/edit courses, click on a category to display the courses in that category. When editing is on, get errors:

      Warning: Division by zero in /Library/WebServer/Documents/moodle/lib/weblib.php on line 4877

      and

      Warning: Division by zero in /Library/WebServer/Documents/moodle/course/category.php on line 300

      Attachments

        1. category.diff
          0.6 kB
        2. weblib.diff
          0.6 kB
        3. weblib-perpage-div-zero.diff
          1.0 kB

        Activity

          People

            dougiamas Martin Dougiamas
            mhuntley Martin Huntley
            Nobody Nobody
            Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Oct/07