mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Basic check on numbers, needs improv still.
This commit is contained in:
@@ -81,6 +81,12 @@ class ReconcileController extends Controller
|
|||||||
if (!$start instanceof Carbon && !$end instanceof Carbon) {
|
if (!$start instanceof Carbon && !$end instanceof Carbon) {
|
||||||
throw new FireflyException('Invalid dates submitted.');
|
throw new FireflyException('Invalid dates submitted.');
|
||||||
}
|
}
|
||||||
|
if(!is_numeric($startBalance)) {
|
||||||
|
$startBalance = '0';
|
||||||
|
}
|
||||||
|
if(!is_numeric($endBalance)) {
|
||||||
|
$endBalance = '0';
|
||||||
|
}
|
||||||
if ($end->lt($start)) {
|
if ($end->lt($start)) {
|
||||||
[$start, $end] = [$end, $start];
|
[$start, $end] = [$end, $start];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user