-
Bug
-
Resolution: Fixed
-
Minor
-
1.7, 1.7.1
-
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) {
- has a clone
-
MDL-11098 LDAP enrolment breaks due to non-defined variable used as $user property.
- Closed