From 0b200309ba8d5306e3b213234819123417ad7813 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 28 May 2024 05:53:17 +0200 Subject: [PATCH] Catch empty strings --- app/Console/Commands/System/ForceDecimalSize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.