mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
Sync: initialize empty array only for combined keys
This commit is contained in:
parent
b9ee674d3f
commit
79f4aec592
@ -444,11 +444,11 @@ class Sync
|
|||||||
|
|
||||||
protected function loadExistingObjects()
|
protected function loadExistingObjects()
|
||||||
{
|
{
|
||||||
$this->objects = array();
|
|
||||||
|
|
||||||
// TODO: Make object_type (template, object...) and object_name mandatory?
|
// TODO: Make object_type (template, object...) and object_name mandatory?
|
||||||
if ($this->hasCombinedKey()) {
|
if ($this->hasCombinedKey()) {
|
||||||
|
|
||||||
|
$this->objects = array();
|
||||||
|
|
||||||
foreach (IcingaObject::loadAllByType(
|
foreach (IcingaObject::loadAllByType(
|
||||||
$this->rule->object_type,
|
$this->rule->object_type,
|
||||||
$this->db
|
$this->db
|
||||||
|
Loading…
x
Reference in New Issue
Block a user