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

enrol fails with 'Notice: Undefined variable: extcourse' message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.1, 1.9
    • 1.8
    • Enrolments
    • None
    • Microsoft SQL
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      Running the script to manage external database enrolments shows this message:
      Notice: Undefined variable: extcourse in [path]\moodle\enrol\database\enrol.php on line 99
      Notice: Undefined variable: extcourse in [path]\moodle\enrol\database\enrol.php on line 102
      Notice: Undefined variable: extcourse in [path]\moodle\enrol\database\enrol.php on line 103
      Notice: Undefined variable: extcourse in [path]\moodle\enrol\database\enrol.php on line 104

      I found that the referred file uses a non-initialized variable $extcourse. Switching that variable to $coursefield, at the lines metioned above, solves the problem.

            nicolasconnault Nicolas Connault (Inactive)
            seiti Seiti Yamashiro (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.