From 22e30b18710b7f6382d35f230832d69c0b981a60 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Thu, 1 Aug 2019 21:38:28 +0200 Subject: [PATCH] fix activity import Kimai v1 (#1001) --- src/Command/KimaiImporterCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)