Skip to content

Commit 6ca1f75

Browse files
fixup! feat(dav): add occ commands to get and set absences
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent e6280e9 commit 6ca1f75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/dav/lib/Command/GetAbsenceCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public function execute(InputInterface $input, OutputInterface $output): int {
5353
$output->writeln('<info>End day:</info> ' . $absence->getLastDay());
5454
$output->writeln('<info>Short message:</info> ' . $absence->getStatus());
5555
$output->writeln('<info>Message:</info> ' . $absence->getMessage());
56-
$output->writeln('<info>Replacement user:</info> ' . $absence->getReplacementUserId() ?? 'none');
57-
$output->writeln('<info>Replacement display name:</info> ' . $absence->getReplacementUserDisplayName() ?? 'none');
56+
$output->writeln('<info>Replacement user:</info> ' . ($absence->getReplacementUserId() ?? 'none'));
57+
$output->writeln('<info>Replacement display name:</info> ' . ($absence->getReplacementUserDisplayName() ?? 'none'));
5858

5959
return 0;
6060
}

0 commit comments

Comments
 (0)