type check

This commit is contained in:
Dennis Eichhorn 2023-10-23 01:10:53 +00:00
parent 60fa60a91a
commit 8c5486bed4

View File

@ -69,8 +69,8 @@ class ICalParser
\preg_match('/GEO:(.*?)\n/', $match[1], $geo); \preg_match('/GEO:(.*?)\n/', $match[1], $geo);
$temp = \explode(';', $geo[1]); $temp = \explode(';', $geo[1]);
$event['geo'] = [ $event['geo'] = [
'lat' => (float) $temp[0], 'lat' => (float) \trim($temp[0] ?? '0'),
'lon' => (float) $temp[1], 'lon' => (float) \trim($temp[1] ?? '0'),
]; ];
\preg_match('/URL:(.*?)\n/', $match[1], $url); \preg_match('/URL:(.*?)\n/', $match[1], $url);