From d54ced861833f9bdbaf1b54a24583d3fe8428621 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Tue, 29 Mar 2005 00:21:55 +0000 Subject: [PATCH] Fixing typo in ldap enrolment plugin (variable missing _) --- enrol/ldap/enrol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/ldap/enrol.php b/enrol/ldap/enrol.php index d626b63807c..53309bb5ded 100755 --- a/enrol/ldap/enrol.php +++ b/enrol/ldap/enrol.php @@ -81,7 +81,7 @@ function get_user_courses(&$user, $type) { error_log("User $user->username enrolled to a nonexistant course $course_ext_id \n"); } } else { // the course object exists before we call... - if ($courseobj->visible==0) { + if ($course_obj->visible==0) { // non-visible courses don't show up in the enrolled // array, so we should skip them -- unset($user->{$type}[$course_obj->id]);