@ -170,6 +170,7 @@ class UserManager
* @param int $creatorId
*
* @return mixed new user id - if the new user creation succeeds, false otherwise
* @desc The function tries to retrieve user id from the session.
* If it exists, the current user id is the creator id. If a problem arises,
* @assert ('Sam','Gamegie',5,'sam@example.com','jo','jo') > 1
@ -3374,7 +3374,7 @@ function finishInstallationWithContainer(
'',
false, //$send_mail = false,
true, //$isAdmin = false
false,
1
@ -188,7 +188,7 @@ if (!$myCourseListAsCategory) {
}
// Check if a user is enrolled only in one course for going directly to the course after the login.
if (api_get_setting('go_to_course_after_login') == 'true') {
if (api_get_setting('go_to_course_after_login') === 'true') {
$count_of_sessions = $courseAndSessions['session_count'];
$count_of_courses_no_sessions = $courseAndSessions['course_count'];
// User is subscribe in 1 session and 0 courses.