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…
Reference in New Issue