Permalink
Browse files

MDL-9102 incorrect use of unset_config()

  • Loading branch information...
1 parent 5c33b48 commit 9228be2bd2baaaaaf74958b5121da844705a0f84 danmarsden committed Mar 28, 2007
Showing with 4 additions and 4 deletions.
  1. +4 −4 enrol/ldap/enrol.php
View
@@ -646,7 +646,7 @@ function check_legacy_config () {
set_config('enrol_ldap_contexts_role'.$student_role->id, $CFG->enrol_ldap_student_contexts);
}
- unset_config($CFG->enrol_ldap_student_contexts);
+ unset_config('enrol_ldap_student_contexts');
}
if (isset($CFG->enrol_ldap_student_memberattribute)) {
@@ -655,15 +655,15 @@ function check_legacy_config () {
set_config('enrol_ldap_memberattribute_role'.$student_role->id, $CFG->enrol_ldap_student_memberattribute);
}
- unset_config($CFG->enrol_ldap_student_memberattribute);
+ unset_config('enrol_ldap_student_memberattribute');
}
if (isset($CFG->enrol_ldap_teacher_contexts)) {
if ($teacher_role = get_record('role', 'shortname', 'teacher')) {
set_config('enrol_ldap_contexts_role'.$teacher_role->id, $CFG->enrol_ldap_student_contexts);
}
- unset_config($CFG->enrol_ldap_teacher_contexts);
+ unset_config('enrol_ldap_teacher_contexts');
}
if (isset($CFG->enrol_ldap_teacher_memberattribute)) {
@@ -672,7 +672,7 @@ function check_legacy_config () {
set_config('enrol_ldap_memberattribute_role'.$teacher_role->id, $CFG->enrol_ldap_teacher_memberattribute);
}
- unset_config($CFG->enrol_ldap_teacher_memberattribute);
+ unset_config('enrol_ldap_teacher_memberattribute');
}
}

0 comments on commit 9228be2

Please sign in to comment.