Skip to content
Snippets Groups Projects
Commit 1d81fc80 authored by Chris Leppanen's avatar Chris Leppanen
Browse files

Issue #1271502 by twistor | oobie11: Fixed Im getting an error when I run cron .

parent 7160c4b0
No related branches found
No related tags found
No related merge requests found
...@@ -581,7 +581,8 @@ class FeedsSource extends FeedsConfigurable { ...@@ -581,7 +581,8 @@ class FeedsSource extends FeedsConfigurable {
* An array stored for $client. * An array stored for $client.
*/ */
public function getConfigFor(FeedsSourceInterface $client) { public function getConfigFor(FeedsSourceInterface $client) {
return $this->config[get_class($client)]; $class = get_class($client);
return isset($this->config[$class]) ? $this->config[$class] : $client->sourceDefaults();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment