fix: several bug fixes as found in logs

This commit is contained in:
Björn Fromme
2024-10-14 15:01:17 +02:00
parent 760b3673fc
commit 5976668cb7
4 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ class DestinationType extends AbstractType
if (null !== $hotelBusProId) {
$hotel = $this->hotelDataProvider->get((int) $hotelBusProId);
$hotelLabel = sprintf('%s (%s)', $hotel->getName(), $hotel->getCode());
$hotelLabel = null !== $hotel ? sprintf('%s (%s)', $hotel->getName(), $hotel->getCode()) : 'unbekannt';
}
$form