Fix the case of a variable

This commit is contained in:
Andrew Ruthven 2022-02-13 02:17:28 +13:00
parent cf0e2774f6
commit dcd240785d

View File

@ -156,7 +156,7 @@ if ( $qry->Exec() && $qry->rows() ) {
$last = $first;
}
}
if ( $args->set_last && !isset($last) && (!isset($next) || $next < $expand_range_Start) ) {
if ( $args->set_last && !isset($last) && (!isset($next) || $next < $expand_range_start) ) {
$vc = new vCalendar( $alarm->caldav_data );
$range = getVCalendarRange($vc);
if ( isset($range->until) && $range->until < $earliest ) $last = $range->until;