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

print_recent_activity() assums activity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      If an activity module exists in the database, but it's files have been removed, print_recent_activity() (in course/lib.php) will try to include it anyways without checking if it exists. This produces an error message.

      The include_once statement is on line 1125 for the current 1.8 stable version (1.484.2.27). It should check if the file exists first like it does in line 975.

        Attachments

          Activity

            People

            • Assignee:
              mchurch Mike Churchward
              Reporter:
              trick Alan Trick
              Tester:
              Nobody
              Participants:
              Component watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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