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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.7.2, 1.8.2, 1.9
    • 1.7, 1.7.1
    • 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

      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) {

            dougiamas Martin Dougiamas
            rudd_j James Rudd
            Nobody Nobody
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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