mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-20 03:08:11 +00:00
This commit is contained in:
@@ -81,7 +81,12 @@ class RecurrenceController extends Controller
|
|||||||
$skip = $skip < 0 || $skip > 31 ? 0 : $skip;
|
$skip = $skip < 0 || $skip > 31 ? 0 : $skip;
|
||||||
$weekend = $weekend < 1 || $weekend > 4 ? 1 : $weekend;
|
$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();
|
return response()->json();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user