Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Basic amount fix
James Cole70c08d6b50d1
diff --git a/app/Http/Controllers/Budget/BudgetLimitController.php b/app/Http/Controllers/Budget/BudgetLimitController.phpindex 6a0b92ec68..34c1de175c 100644--- a/app/Http/Controllers/Budget/BudgetLimitController.php+++ b/app/Http/Controllers/Budget/BudgetLimitController.php@@ -206,6 +206,14 @@ class BudgetLimitController extends Controller$amount = '0';}+ // sanity check on amount:+ if ((float) $amount === 0.0) {+ $amount = '1';+ }+ if ((int) $amount > 65536) {+ $amount = '65536';+ }+$limit = $this->blRepository->update($budgetLimit, ['amount' => $amount]);$array = $limit->toArray();