mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
GroupMembershipResolver: last inserted ID is int...
...for PostgreSQL - as it should be everywhere :-/ fixes #1500
This commit is contained in:
parent
728bbe523e
commit
9c9a5b5b93
@ -565,7 +565,7 @@ abstract class GroupMembershipResolver
|
||||
|
||||
protected function assertBeenLoadedFromDb(IcingaObject $object)
|
||||
{
|
||||
if (! ctype_digit($object->get('id'))) {
|
||||
if (! is_int($object->get('id')) && ! ctype_digit($object->get('id'))) {
|
||||
throw new ProgrammingError(
|
||||
'Group resolver does not support unstored objects'
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user