Bug #105589 » Bug105589.patch
Classes/Settings/Type/IntType.php → Classes/Settings/Type/IntType.php (date 1731503053539) | ||
---|---|---|
{
|
||
if (!$this->validate($value, $definition)) {
|
||
$this->logger->warning('Setting validation field, reverting to default: {key}', ['key' => $definition->key]);
|
||
return $definition->default;
|
||
if (!is_scalar($definition->default)) {
|
||
$this->logger->warning("Invalid default value ".$definition->default." for site settins definition " . $definition->key);
|
||
return 0;
|
||
}
|
||
return (int) $definition->default;
|
||
}
|
||
return (int)$value;
|