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

Problem with LDAP enrolment when Course is hidden.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8, 1.8.1
    • 1.7.2, 1.8.2, 1.9
    • Enrolments
    • None
    • MOODLE_18_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      When Ldap enrolment is used and a course is hidden, and a user is a member of the group that is assigned to the hidden course, on login a user is presented with a "blank" page....or a php error if debug is right....

      caused by the following code in enrol\ldap\enrol.php function setup_enrolments(&$user)

      line 79:
      if ($course_obj->visible==0 && $user->{$type}[$course_obj->id] == 'ldap') {

      $type doesn't exist. - and $user doesn't contain anything that looks like a CourseObj->id with a setting of 'ldap' either....

      replacing it with this works:

      if ($course_obj->visible==0) {
      but it doesn't check to see if the course is an Ldap enrolment type.....

      does it need to check this?

      Dan

      Attachments

        Issue Links

          Activity

            People

              dougiamas Martin Dougiamas
              danmarsden Dan Marsden
              Nobody Nobody
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                30/Mar/07