Fix PHP warning

1.10.x
Julio Montoya 9 years ago
parent 1ec28836b3
commit 0838f6d9a0
  1. 4
      plugin/ticket/src/ticket.class.php

@ -1023,7 +1023,9 @@ class TicketManager
$row['course_url'] = null; $row['course_url'] = null;
if ($row['course_id'] != 0) { if ($row['course_id'] != 0) {
$course = api_get_course_info_by_id($row['course_id']); $course = api_get_course_info_by_id($row['course_id']);
$row['course_url'] = '<a href="' . api_get_path(WEB_COURSE_PATH) . $course['path'] . '">' . $course['name'] . '</a>'; if ($course) {
$row['course_url'] = '<a href="'.$course['course_public_url'].'">'.$course['name'].'</a>';
}
} }
$userInfo = api_get_user_info($row['request_user']); $userInfo = api_get_user_info($row['request_user']);
$row['user_url'] = '<a href="' . api_get_path(WEB_PATH) . 'main/admin/user_information.php?user_id=' . $row['request_user'] . '"> $row['user_url'] = '<a href="' . api_get_path(WEB_PATH) . 'main/admin/user_information.php?user_id=' . $row['request_user'] . '">

Loading…
Cancel
Save