Project

General

Profile

Bug #105589 » Bug105589.patch

Lina Wolf, 2024-11-13 13:13

View differences:

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;
(1-1/2)