From 8bcf16bf4fe40f6acbba4d5b385347fd4e6d8bb2 Mon Sep 17 00:00:00 2001 From: Daniel Kurowski Date: Mon, 21 Jun 2021 11:25:41 +0200 Subject: [PATCH] Temporary fix --- src/Response/Event/Event.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Response/Event/Event.php b/src/Response/Event/Event.php index 3438f48..7c37fa9 100644 --- a/src/Response/Event/Event.php +++ b/src/Response/Event/Event.php @@ -139,8 +139,8 @@ public static function fromResponseData(array $data): static } } - $invitationOrganizationalInformation = (isset($data['text_info']) && $data['text_info'] !== '') ? $data['text_info'] : null; - $invitationIntroduction = (isset($data['text_uvod']) && $data['text_uvod'] !== '') ? $data['text_uvod'] : null; + $invitationOrganizationalInformation = (isset($data['text_info']) && $data['text_info'] !== '') ? $data['text_info'] : ''; // this will not be needed in BIS but now it has to be there as somehow obligatory fields are not required anymore in old BIS + $invitationIntroduction = (isset($data['text_uvod']) && $data['text_uvod'] !== '') ? $data['text_uvod'] : ''; // this will not be needed in BIS but now it has to be there as somehow obligatory fields are not required anymore in old BIS $invitationPresentationText = (isset($data['text_mnam']) && $data['text_mnam'] !== '') ? $data['text_mnam'] : null; $invitationWorkDescription = (isset($data['text_dobr']) && $data['text_dobr'] !== '') ? $data['text_dobr'] : null; $workHoursPerDay = (isset($data['pracovni_doba']) && $data['pracovni_doba'] !== '') ? ((int) $data['pracovni_doba']) : null;