Changeset 155 for trunk/actions/ajax/add_facilitator.php
- Timestamp:
- 09/01/10 15:44:14 (21 months ago)
- Files:
-
- 1 modified
-
trunk/actions/ajax/add_facilitator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/actions/ajax/add_facilitator.php
r139 r155 16 16 // Check if data is provided 17 17 if ($facilitator && $educourse->getSubtype() == 'educourse' && edufeedrCanManageEducourse($educourse)) { 18 19 /* XXX WE DO NOT INSERT FACILITATOR AS TEACHER YET20 $es = new EduSuckr;21 $query = insert_data("INSERT INTO {$CONFIG->dbprefix}edufeedr_course_participants (course_guid, firstname, lastname, email, blog, posts, comments, status) VALUES (".$educourse->getGUID().", 'Course', 'Blog', '".$teacher->email."', '$course_blog', '".$pc['posts']."', '".$pc['comments']."', 'teacher')");22 $teacher_data = array(23 'participant_id' => $participant_id,24 'course_guid' => $educourse->getGUID(),25 'firstname' => "Course",26 'lastname' => "Blog",27 'email' => $teacher->email,28 'blog' => $course_blog,29 'posts' => $pc['posts'],30 'comments' => $pc['comments'],31 'status' => 'teacher'32 );33 */34 18 // Check if that facilitator has already been added to the course 35 19 $added_check = get_data("SELECT id from {$CONFIG->dbprefix}edufeedr_course_facilitators WHERE course_guid = {$educourse->getGUID()} and user_guid = {$facilitator->getGUID()}");
