James Cole 2024-07-06 15:42:33 +02:00
parent 48e548eb52
commit 7219c90957
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -81,7 +81,12 @@ class RecurrenceController extends Controller
$skip = $skip < 0 || $skip > 31 ? 0 : $skip;
$weekend = $weekend < 1 || $weekend > 4 ? 1 : $weekend;
if (null === $start || null === $end || null === $firstDate || null === $endDate) {
if(null === $endDate) {
// safety catch:
$endDate = now()->addYear();
}
if (null === $start || null === $end || null === $firstDate) {
return response()->json();
}