mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
DbObject: compare id/ints only when not null
This commit is contained in:
parent
2a140a512b
commit
26a4a10536
@ -385,7 +385,10 @@ abstract class DbObject
|
||||
return $this;
|
||||
}
|
||||
if ($key === 'id' || substr($key, -3) === '_id') {
|
||||
if ((int) $value === (int) $this->properties[$key]) {
|
||||
if ($value !== null
|
||||
&& $this->properties[$key] !== null
|
||||
&& (int) $value === (int) $this->properties[$key]
|
||||
) {
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user