diff --git a/htdocs/ticket/index.php b/htdocs/ticket/index.php index 31a1efe2481..12a57e7e71d 100644 --- a/htdocs/ticket/index.php +++ b/htdocs/ticket/index.php @@ -322,7 +322,7 @@ if ($user->socid > 0) { $sql .= " AND t.fk_soc= ".((int) $user->socid); } else { // Restricted to assigned user only - if ($conf->global->TICKET_LIMIT_VIEW_ASSIGNED_ONLY && !$user->rights->ticket->manage) { + if (!empty($conf->global->TICKET_LIMIT_VIEW_ASSIGNED_ONLY) && !$user->rights->ticket->manage) { $sql .= " AND t.fk_user_assign=".$user->id; } }