mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
Sync: use string keys for object_name
This commit is contained in:
parent
4b68d68554
commit
6bf1c30c2f
@ -446,6 +446,8 @@ class Sync
|
||||
$sourceId = $source->id;
|
||||
|
||||
foreach ($this->imported[$sourceId] as $key => $row) {
|
||||
// Workaround: $a["10"] = "val"; -> array_keys($a) = [(int) 10]
|
||||
$key = (string) $key;
|
||||
if (! array_key_exists($key, $objects)) {
|
||||
// Safe default values for object_type and object_name
|
||||
if ($ruleObjectType === 'datalistEntry') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user