|
@@ -146,7 +146,6 @@ if (!$myCourseListAsCategory) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
if ($displayMyCourseViewBySessionLink &&
|
|
|
(
|
|
|
api_is_drh() ||
|
|
@@ -213,7 +212,7 @@ if (api_get_setting('go_to_course_after_login') == 'true') {
|
|
|
|
|
|
|
|
|
if (isset($sessionInfo['session_id'])) {
|
|
|
- $url = api_get_path(WEB_CODE_PATH).'session/?session_id='.$sessionInfo['session_id'];
|
|
|
+ $url = api_get_path(WEB_CODE_PATH).'session/index.php?session_id='.$sessionInfo['session_id'];
|
|
|
|
|
|
header('Location:'.$url);
|
|
|
exit;
|
|
@@ -226,10 +225,7 @@ if (api_get_setting('go_to_course_after_login') == 'true') {
|
|
|
$count_of_sessions == 0 &&
|
|
|
$count_of_courses_no_sessions == 1
|
|
|
) {
|
|
|
- $courses = CourseManager::get_courses_list_by_user_id(
|
|
|
- $userId
|
|
|
- );
|
|
|
-
|
|
|
+ $courses = CourseManager::get_courses_list_by_user_id($userId);
|
|
|
if (!empty($courses) && isset($courses[0]) && isset($courses[0]['code'])) {
|
|
|
$courseInfo = api_get_course_info_by_id($courses[0]['real_id']);
|
|
|
if (!empty($courseInfo)) {
|