mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 22:38:42 +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);
|
\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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user