mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-22 06:18:41 +00:00
type check
This commit is contained in:
parent
60fa60a91a
commit
8c5486bed4
|
|
@ -69,8 +69,8 @@ class ICalParser
|
|||
\preg_match('/GEO:(.*?)\n/', $match[1], $geo);
|
||||
$temp = \explode(';', $geo[1]);
|
||||
$event['geo'] = [
|
||||
'lat' => (float) $temp[0],
|
||||
'lon' => (float) $temp[1],
|
||||
'lat' => (float) \trim($temp[0] ?? '0'),
|
||||
'lon' => (float) \trim($temp[1] ?? '0'),
|
||||
];
|
||||
|
||||
\preg_match('/URL:(.*?)\n/', $match[1], $url);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user