mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-14 03:34:38 +00:00
If there are no instances ensure earliest_start still gets a value.
This commit is contained in:
parent
9ee6f37d77
commit
3d694a301f
@ -1481,6 +1481,11 @@ function getVCalendarRange( $vResource ) {
|
||||
foreach ( rdate_expand($dtstart, 'EXDATE', $comp, $range_end) AS $k => $v ) {
|
||||
unset($instances[$k]);
|
||||
}
|
||||
if ( count($instances) < 1 ) {
|
||||
if ( empty($earliest_start) || $dtstart < $earliest_start ) $earliest_start = $dtstart;
|
||||
$latest_end = null;
|
||||
break;
|
||||
}
|
||||
$instances = array_keys($instances);
|
||||
asort($instances);
|
||||
$first = new RepeatRuleDateTime($instances[0]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user