fix: avoid issues with incomplete xml data

This commit is contained in:
Björn Fromme
2024-12-11 14:41:36 +01:00
parent 231aaaac9b
commit 9a84ea24d5
@@ -230,6 +230,10 @@ class TravelXmlLoader extends AbstractXmlLoader
public function getRooms(\SimpleXMLElement $xml): array
{
if (false === isset($xml->zimmer)) {
return [];
}
$rooms = [];
foreach ($xml->zimmer->preis as $item) {