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

use of undefined cm in navigationlib

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3
    • Component/s: Navigation
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      $course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST);
      $modinfo = get_fast_modinfo($course);
      $cm = $modinfo->get_cm($this->instanceid);
      require_course_login($course, true, $cm);

        Attachments

          Activity

            People

            Assignee:
            samhemelryk Sam Hemelryk
            Reporter:
            skodak Petr Skoda
            Tester:
            Petr Skoda
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              5/May/11