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

Notice: Undefined variable: type in /moodle/enrol/ldap/enrol.php on line 79

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7, 1.7.1
    • 1.7.2, 1.8.2, 1.9
    • Enrolments
    • None
    • SLES 10; PHP Version 5.2; MySql 5.0.18; Ldap: eDirectory 8.7.8
    • MySQL
    • MOODLE_17_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      Undefined variable: type in /moodle/enrol/ldap/enrol.php on line 79
      Fatal error: Cannot access empty property in /moodle/enrol/ldap/enrol.php on line 79

      It appears that on line 79 the $type variable is used, but it is not defined until function call on line 131.

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

      Line 131:
      function sync_enrolments($type, $enrol = false) {

      Attachments

        Issue Links

          Activity

            People

              dougiamas Martin Dougiamas
              rudd_j James Rudd
              Nobody Nobody
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                30/Mar/07