diff --git a/scripts/refresh-alarms.php b/scripts/refresh-alarms.php index bcca7957..2ee0ce90 100755 --- a/scripts/refresh-alarms.php +++ b/scripts/refresh-alarms.php @@ -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;