mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-30 22:28:13 +02:00
IcingaObject: cast interval properties to int
They might be strings when shipped from DB or older Baskets
This commit is contained in:
parent
903f2c825f
commit
d6bec9bfe1
@ -2878,6 +2878,9 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($this->propertyIsInterval($k) && is_string($v) && ctype_digit($v)) {
|
||||
$v = (int) $v;
|
||||
}
|
||||
|
||||
// TODO: Do not ship null properties based on flag?
|
||||
if (!$skipDefaults || $this->differsFromDefaultValue($k, $v)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user