diff --git a/src/Command/KimaiImporterCommand.php b/src/Command/KimaiImporterCommand.php index f0a4cdfb..a790f549 100644 --- a/src/Command/KimaiImporterCommand.php +++ b/src/Command/KimaiImporterCommand.php @@ -830,9 +830,9 @@ class KimaiImporterCommand extends Command $activity = new Activity(); $activity ->setName($name) - ->setComment($oldActivity['comment'] ?: null) + ->setComment($oldActivity['comment'] ?? null) ->setVisible($isActive) - ->setBudget($oldActivity['budget'] ?: 0) + ->setBudget($oldActivity['budget'] ?? 0) ; if (null !== $projectId) { @@ -1059,7 +1059,7 @@ class KimaiImporterCommand extends Command // --------------------------------------------------------------------- $timesheet - ->setDescription($oldRecord['description'] ?: ($oldRecord['comment'] ?: null)) + ->setDescription($oldRecord['description'] ?? ($oldRecord['comment'] ?? null)) ->setUser($this->users[$oldRecord['userID']]) ->setBegin($begin) ->setEnd($end)