Skip to content

Commit

Permalink
Fix coach name in course list - refs BT#17874
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Oct 16, 2020
1 parent 74f4a3f commit 3037fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/inc/lib/display.lib.php
Expand Up @@ -1719,8 +1719,8 @@ public static function getSessionTitleBox($session_id)
if (!$nosession) {
$session_info = api_get_session_info($session_id);
$coachInfo = [];
if (!empty($session['id_coach'])) {
$coachInfo = api_get_user_info($session['id_coach']);
if (!empty($session_info['id_coach'])) {
$coachInfo = api_get_user_info($session_info['id_coach']);
}

$session = [];
Expand Down

0 comments on commit 3037fb1

Please sign in to comment.