Skip to content

Commit

Permalink
try to fix followup - see #95
Browse files Browse the repository at this point in the history
  • Loading branch information
yllen committed Mar 6, 2024
1 parent 1a09593 commit 5d21ecf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/itilfollowup.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ static function beforeAdd(ITILFollowup $fup) {
$ticket_user->getFromDBByCrit(['tickets_id' => $ticket->getID(),
'type' => CommonITILActor::ASSIGN]);

if ($ticket_user->fields['users_id'] <> Session::getLoginUserID()) {
if (isset($ticket_user->fields['users_id'])
&& ($ticket_user->fields['users_id'] <> Session::getLoginUserID())) {
$group_ticket = new Group_Ticket();
$group_ticket->getFromDBByCrit(['tickets_id' => $ticket->getID(),
'type' => CommonITILActor::ASSIGN]);
Expand Down

0 comments on commit 5d21ecf

Please sign in to comment.