diff --git a/app/views/consultation/export/print.php b/app/views/consultation/export/print.php index ddf2f749a305168d41b44ebcf29c063d80137d7e..71cb1ab9cd0ba9ada87259d45da038f6416417dd 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: ?>