mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 21:13:23 +01:00
If recur end date could not be parsed, handle it as missing.
This commit is contained in:
parent
32a1b40704
commit
210b403777
@ -2455,6 +2455,11 @@ class calendar_ical extends calendar_boupdate
|
||||
if (preg_match('/UNTIL=([0-9TZ]+)/',$recurence,$matches))
|
||||
{
|
||||
$vcardData['recur_enddate'] = $this->vCalendar->_parseDateTime($matches[1]);
|
||||
// If it couldn't be parsed, treat it as not set
|
||||
if(is_string($vcardData['recur_enddate']))
|
||||
{
|
||||
unset($vcardData['recur_enddate']);
|
||||
}
|
||||
}
|
||||
elseif (preg_match('/COUNT=([0-9]+)/',$recurence,$matches))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user