Skip to content

Commit c542fea

Browse files
committed
User: Course: Fix event error when removing a user from a course - refs BT#21952
1 parent abf13ea commit c542fea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

public/main/inc/lib/course.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ public static function unsubscribe_user($user_id, $course_code, $session_id = 0)
458458
}
459459
}
460460

461+
$user_id = api_get_user_id();
461462
Event::addEvent(
462463
LOG_UNSUBSCRIBE_USER_FROM_COURSE,
463464
LOG_COURSE_CODE,

0 commit comments

Comments
 (0)