diff --git a/plugin/ticket/src/ticket.class.php b/plugin/ticket/src/ticket.class.php
index cb18048323..ab48e7c2e8 100755
--- a/plugin/ticket/src/ticket.class.php
+++ b/plugin/ticket/src/ticket.class.php
@@ -1023,7 +1023,9 @@ class TicketManager
$row['course_url'] = null;
if ($row['course_id'] != 0) {
$course = api_get_course_info_by_id($row['course_id']);
- $row['course_url'] = '' . $course['name'] . '';
+ if ($course) {
+ $row['course_url'] = ''.$course['name'].'';
+ }
}
$userInfo = api_get_user_info($row['request_user']);
$row['user_url'] = '