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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: General
    • Labels:
      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
          Ken Wilson
        2. weblib.diff
          0.6 kB
          Ken Wilson
        3. weblib-perpage-div-zero.diff
          1.0 kB
          Peter Bulmer

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            mhuntley Martin Huntley
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Oct/07