diff --git a/plugin/ticket/src/ticket.class.php b/plugin/ticket/src/ticket.class.php
index b88067e00b..eac50441b0 100755
--- a/plugin/ticket/src/ticket.class.php
+++ b/plugin/ticket/src/ticket.class.php
@@ -658,9 +658,14 @@ class TicketManager
$actions = "";
if ($row['responsible'] != 0) {
- $hrefResp = $webPath . 'main/admin/user_information.php?user_id=' . $row['responsible']['user_id'];
$row['responsible'] = api_get_user_info($row['responsible']);
- $row['responsible'] = " {$row['responsible']['username']} ";
+ if (!empty($row['responsible'])) {
+ $hrefResp = $webPath . 'main/admin/user_information.php?user_id=' . $row['responsible']['user_id'];
+ $row['responsible'] = " {$row['responsible']['username']} ";
+ } else {
+ $row['responsible'] = get_lang('UnknownUser');
+ }
+
} else {
if ($row['status_id'] != 'REE') {
$row['responsible'] = '' . $plugin->get_lang('ToBeAssigned') . '';
@@ -668,6 +673,7 @@ class TicketManager
$row['responsible'] = '' . get_lang('MessageResent') . '';
}
}
+
switch ($row['source']) {
case 'PRE':
$img_source = 'icons/32/user.png';