Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3453

Error in Overview page when no students are enrolled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: Block: Progress
    • Labels:
      None
    • Workaround:
      Hide

      Enrol some students.

      Show
      Enrol some students.
    • Affected Branches:
      MOODLE_22_STABLE

      Description

      When there are no students enrolled in a course, the overview page reports the following error.

      Warning: usort() expects parameter 1 to be array, null given in D:\xampp\htdocs\moodle_master\blocks\progress\overview.php on line 167
       
      Warning: Invalid argument supplied for foreach() in D:\xampp\htdocs\moodle_master\blocks\progress\overview.php on line 169

        Attachments

          Activity

            People

            Assignee:
            salvetore Michael de Raadt
            Reporter:
            shanmer Simon Hanmer
            Participants:
            Component watchers:
            Michael de Raadt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: