Moodle
  1. Moodle
  2. MDL-9102

Bug with ldap\enrol.php check_legacy_config()

    Details

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

      Description

      I get the error:
      Fatal error: Cannot access empty property in \lib\moodlelib.php on line 680

      incorrect call of unset_config() in check_legacy_config()

      should be:
      unset_config('enrol_ldap_student_contexts');
      not:
      unset_config($CFG->enrol_ldap_student_contexts);

      also appears in a couple of other instances on the page.

        Activity

        Hide
        Dan Marsden added a comment -

        fixed in 1.8 and HEAD

        Show
        Dan Marsden added a comment - fixed in 1.8 and HEAD

          People

          • Assignee:
            Dan Marsden
            Reporter:
            Dan Marsden
            Tester:
            Nobody
            Participants:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: