mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-20 11:48:27 -06:00
BUGFIX: sqlite does not return int types
This commit is contained in:
parent
55ae280aaa
commit
acc496e3e9
@ -129,8 +129,8 @@ class CreateAutoBudgetLimits implements ShouldQueue
|
|||||||
|
|
||||||
// find budget limit:
|
// find budget limit:
|
||||||
$budgetLimit = $this->findBudgetLimit($autoBudget->budget, $start, $end);
|
$budgetLimit = $this->findBudgetLimit($autoBudget->budget, $start, $end);
|
||||||
|
$type = $autoBudget->auto_budget_type;
|
||||||
if (null === $budgetLimit && AutoBudget::AUTO_BUDGET_RESET === $autoBudget->auto_budget_type) {
|
if (null === $budgetLimit && AutoBudget::AUTO_BUDGET_RESET === (int)$autoBudget->auto_budget_type) {
|
||||||
// that's easy: create one.
|
// that's easy: create one.
|
||||||
// do nothing else.
|
// do nothing else.
|
||||||
$this->createBudgetLimit($autoBudget, $start, $end);
|
$this->createBudgetLimit($autoBudget, $start, $end);
|
||||||
@ -139,7 +139,7 @@ class CreateAutoBudgetLimits implements ShouldQueue
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null === $budgetLimit && AutoBudget::AUTO_BUDGET_ROLLOVER === $autoBudget->auto_budget_type) {
|
if (null === $budgetLimit && AutoBudget::AUTO_BUDGET_ROLLOVER === (int)$autoBudget->auto_budget_type) {
|
||||||
// budget limit exists already,
|
// budget limit exists already,
|
||||||
$this->createRollover($autoBudget);
|
$this->createRollover($autoBudget);
|
||||||
Log::debug(sprintf('Done with auto budget #%d', $autoBudget->id));
|
Log::debug(sprintf('Done with auto budget #%d', $autoBudget->id));
|
||||||
|
Loading…
Reference in New Issue
Block a user