Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a wrong call to add_teacher in LDAP plugin

  • Loading branch information...
commit f7d818d5c5d35d8a798e48d872735016f4d284e3 1 parent 11889a8
authored November 02, 2005

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  enrol/ldap/enrol.php
2  enrol/ldap/enrol.php
@@ -103,7 +103,7 @@ function get_user_courses(&$user, $type) {
103 103
                    }
104 104
                 } else if ($type === 'teacher') {
105 105
                       error_log("Enrolling teacher $user->id ($user->username) in course $course_obj->id ($course_obj->shortname)");
106  
-                    add_teacher($user->id, $course_obj->id, 1, 0, 0,'ldap');
  106
+                    add_teacher($user->id, $course_obj->id, 1, '', 0, 0,'ldap');
107 107
                 }
108 108
                 $CFG->debug=0;
109 109
             }

0 notes on commit f7d818d

Please sign in to comment.
Something went wrong with that request. Please try again.