diff --git a/app/Console/Commands/System/ForceDecimalSize.php b/app/Console/Commands/System/ForceDecimalSize.php index 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.