Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Resolved code smell
Jeroen De Meerleer28faee6e4138
diff --git a/app/Jobs/CreateAutoBudgetLimits.php b/app/Jobs/CreateAutoBudgetLimits.phpindex 84b37cba3c..b3cd43ef7e 100644--- a/app/Jobs/CreateAutoBudgetLimits.php+++ b/app/Jobs/CreateAutoBudgetLimits.php@@ -129,7 +129,7 @@ class CreateAutoBudgetLimits implements ShouldQueue// find budget limit:$budgetLimit = $this->findBudgetLimit($autoBudget->budget, $start, $end);- $type = $autoBudget->auto_budget_type;+if (null === $budgetLimit && AutoBudget::AUTO_BUDGET_RESET === (int)$autoBudget->auto_budget_type) {// that's easy: create one.// do nothing else.