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()
|
||||
{
|
||||
$this->objects = array();
|
||||
|
||||
// TODO: Make object_type (template, object...) and object_name mandatory?
|
||||
if ($this->hasCombinedKey()) {
|
||||
|
||||
$this->objects = array();
|
||||
|
||||
foreach (IcingaObject::loadAllByType(
|
||||
$this->rule->object_type,
|
||||
$this->db
|
||||
|
|
Loading…
Reference in New Issue