From ff7e2433706005b6716c0b8449dac77181118d3c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 23 Feb 2016 11:59:25 +0100 Subject: [PATCH] Sync: remove forgotten $db's --- library/Director/Import/Sync.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/library/Director/Import/Sync.php b/library/Director/Import/Sync.php index b0e095f7..76f304f6 100644 --- a/library/Director/Import/Sync.php +++ b/library/Director/Import/Sync.php @@ -435,13 +435,12 @@ class Sync protected function prepare() { $rule = $this->rule; - $db = $this->db; $properties = $rule->fetchSyncProperties(); - $sources = $this->perpareImportSources($properties, $db); - $imported = $this->fetchImportedData($sources, $properties, $rule, $db); + $sources = $this->perpareImportSources($properties); + $imported = $this->fetchImportedData($sources, $properties); // TODO: Make object_type (template, object...) and object_name mandatory? - $objects = IcingaObject::loadAllByType($rule->object_type, $db); + $objects = IcingaObject::loadAllByType($rule->object_type, $this->db); // TODO: should be obsoleted by a better "loadFiltered" method if ($rule->object_type === 'datalistEntry') {