diff --git a/application/Espo/Core/Notification/DefaultAssignmentNotificator.php b/application/Espo/Core/Notification/DefaultAssignmentNotificator.php index 865db01cdf..bd5ddff48c 100644 --- a/application/Espo/Core/Notification/DefaultAssignmentNotificator.php +++ b/application/Espo/Core/Notification/DefaultAssignmentNotificator.php @@ -56,12 +56,8 @@ class DefaultAssignmentNotificator implements AssignmentNotificator if ($entity->hasLinkMultipleField('assignedUsers')) { /** @var string[] $userIdList */ $userIdList = $entity->getLinkMultipleIdList('assignedUsers'); - /** @var ?string[] $fetchedAssignedUserIdList */ - $fetchedAssignedUserIdList = $entity->getFetched('assignedUsersIds'); - - if (!is_array($fetchedAssignedUserIdList)) { - $fetchedAssignedUserIdList = []; - } + /** @var string[] $fetchedAssignedUserIdList */ + $fetchedAssignedUserIdList = $entity->getFetched('assignedUsersIds') ?? []; foreach ($userIdList as $userId) { if (in_array($userId, $fetchedAssignedUserIdList)) {