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

Graph of Report "Course Overview" is not show

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.2
    • 1.8.3, 1.9
    • Administration
    • None
    • Linux/Windows
    • MySQL
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      The graph of "Course Overview" report is not show.

      With the Debug enabled, the following message is show:

      <br />
      <b>Notice</b>: Undefined variable: course in <b>.../moodle/admin/report/courseoverview/reportsgraph.php</b> on line <b>15</b><br />
      <br />
      <b>Notice</b>: Trying to get property of non-object in <b>.../moodle/admin/report/courseoverview/reportsgraph.php</b> on line <b>15</b><br />

      Solution:

      Before the code on the line 15 of this file, include this code:

      $course = get_site();

      And graphs works fine!

      Attachments

        Activity

          People

            dougiamas Martin Dougiamas
            progdan Daniel Arndt Alves
            Nobody Nobody
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Oct/07