Skip to content

Commit

Permalink
BUGFIX config errors when merging/setting values
Browse files Browse the repository at this point in the history
  • Loading branch information
muskie9 committed Jan 27, 2025
1 parent dcd1b0f commit a444e66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Model/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ public function __construct($importerKey)

$serviceConfig = Config::inst()->get($this->serviceName);
foreach ($this->yieldKeyVal($serviceConfig) as $key => $value) {
$this->config()->merge($key, $value);
if (!is_array($value)) {
$this->config()->set($key, $value);
}else{
$this->config()->merge($key, $value);
}

if ($key === 'extensions') {
if (!is_array($value)) {
Expand Down

0 comments on commit a444e66

Please sign in to comment.