diff --git a/app/Http/Controllers/Json/ReconcileController.php b/app/Http/Controllers/Json/ReconcileController.php index 763d306275..436fe0f347 100644 --- a/app/Http/Controllers/Json/ReconcileController.php +++ b/app/Http/Controllers/Json/ReconcileController.php @@ -81,6 +81,12 @@ class ReconcileController extends Controller if (!$start instanceof Carbon && !$end instanceof Carbon) { throw new FireflyException('Invalid dates submitted.'); } + if(!is_numeric($startBalance)) { + $startBalance = '0'; + } + if(!is_numeric($endBalance)) { + $endBalance = '0'; + } if ($end->lt($start)) { [$start, $end] = [$end, $start]; }