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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1, 1.9
    • Component/s: Enrolments
    • Labels:
      None
    • Database:
      Microsoft SQL
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nicolasconnault Nicolas Connault
              Reporter:
              seiti Seiti Yamashiro
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jun/07