From ee9af4162c932ce92cb2edc75dab19a8918bebb3 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+github@gmail.com> Date: Thu, 4 Nov 2021 14:47:49 +0100 Subject: [PATCH] fixes #385 --- app/views/consultation/export/print.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/consultation/export/print.php b/app/views/consultation/export/print.php index ddf2f749a30..71cb1ab9cd0 100644 --- a/app/views/consultation/export/print.php +++ b/app/views/consultation/export/print.php @@ -110,7 +110,9 @@ <? if (count($slot->bookings) > 0): ?> <ul> <? foreach ($slot->bookings as $booking): ?> - <li><?= htmlReady($booking->user->getFullName()) ?></li> + <? if ($booking->user): ?> + <li><?= htmlReady($booking->user->getFullName()) ?></li> + <? endif; ?> <? endforeach; ?> </ul> <? else: ?> -- GitLab