From 1d81fc80f01df46161d694d709df4c1f4ad8ae9a Mon Sep 17 00:00:00 2001 From: Chris Leppanen <chris.leppanen@gmail.com> Date: Sun, 22 Jul 2012 16:32:59 -0700 Subject: [PATCH] Issue #1271502 by twistor | oobie11: Fixed Im getting an error when I run cron . --- includes/FeedsSource.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/FeedsSource.inc b/includes/FeedsSource.inc index e0ac50c2..d8063c9b 100644 --- a/includes/FeedsSource.inc +++ b/includes/FeedsSource.inc @@ -581,7 +581,8 @@ class FeedsSource extends FeedsConfigurable { * An array stored for $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(); } /** -- GitLab