Catch empty strings

This commit is contained in:
James Cole
2024-05-28 05:53:17 +02:00
parent a184548912
commit 0b200309ba

View File

@@ -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.