summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Barth2010-09-20 16:03:30 +0000
committerAlex Barth2010-09-20 16:03:30 +0000
commit7b9ed6b8b540eed97bc9dd5eaa23e9f9e383b182 (patch)
tree7b1e1ae8fd2730b46c0bd6bb9eb0b00b4fa0b82e
parent7053fd0f30727063431db44708bc892cafd66d74 (diff)
Fix a notice.
-rw-r--r--includes/FeedsSource.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/FeedsSource.inc b/includes/FeedsSource.inc
index 90bde3a..377936c 100644
--- a/includes/FeedsSource.inc
+++ b/includes/FeedsSource.inc
@@ -342,7 +342,8 @@ class FeedsSource extends FeedsConfigurable {
foreach ($this->importer->plugin_types as $type) {
if ($this->importer->$type->hasSourceConfig()) {
$class = get_class($this->importer->$type);
- $form[$class] = $this->importer->$type->sourceForm($this->config[$class]);
+ $config = isset($this->config[$class]) ? $this->config[$class] : array();
+ $form[$class] = $this->importer->$type->sourceForm($config);
$form[$class]['#tree'] = TRUE;
}
}