Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Catch empty strings
James Cole0b200309ba8d
diff --git a/app/Console/Commands/System/ForceDecimalSize.php b/app/Console/Commands/System/ForceDecimalSize.phpindex daa97b39fd..6fc97cde7f 100644--- a/app/Console/Commands/System/ForceDecimalSize.php+++ b/app/Console/Commands/System/ForceDecimalSize.php@@ -307,7 +307,7 @@ class ForceDecimalSize extends Command/** @var string $field */foreach ($fields as $field) {$value = $item->{$field};- if (null === $value) {+ if (null === $value || '' === $value) {continue;}// fix $field by rounding it down correctly.