Another fix for #1092

This commit is contained in:
James Cole 2018-01-04 08:09:26 +01:00
parent a1b83def4f
commit 3ce5ccb98a
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -246,7 +246,8 @@ class Map implements ConfigurationInterface
{
// run specifics here:
// and this is the point where the specifix go to work.
$names = array_keys($this->job->configuration['specifics']);
$specifics = $this->job->configuration['specifics'] ?? [];
$names = array_keys($specifics);
foreach ($names as $name) {
if (!in_array($name, $this->validSpecifics)) {
throw new FireflyException(sprintf('"%s" is not a valid class name', $name));