Skip to content

Commit 889ff4b

Browse files
Check both 'id' and 'entry'
1 parent 6fe9a39 commit 889ff4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMDBCategory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public function batchCreate(array $objectIDs, string $categoryConst, array $attr
401401
}
402402
}
403403

404-
$entryIDs[] = (int) $entry['id'];
404+
$entryIDs[] = (int) ($entry['id'] ?? $entry['entry']);
405405
}
406406

407407
return $entryIDs;

0 commit comments

Comments
 (0)