diff --git a/library/Director/Objects/ImportSource.php b/library/Director/Objects/ImportSource.php index bd26e905..985a02b1 100644 --- a/library/Director/Objects/ImportSource.php +++ b/library/Director/Objects/ImportSource.php @@ -52,6 +52,15 @@ class ImportSource extends DbObject return $this->settings; } + public function getSetting($name, $default = null) + { + if (array_key_exists($name, $this->settings)) { + return $this->settings[$name]; + } + + return $default; + } + protected function onStore() { $old = $this->fetchSettingsFromDb();