diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-04-24 12:51:07 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-04-24 12:51:42 +0300 |
commit | deca9b8aee1d1436bc26709a7d44337c03ffb463 (patch) | |
tree | e7174ba11f04ad7a52f61fae32ef05f45aa6c259 | |
parent | cef676225956ee68352871bc833df97e70c64956 (diff) |
Fix provider loading if only one provider is available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | lib/Service/ProviderService.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Service/ProviderService.php b/lib/Service/ProviderService.php index 2a72a8f..c79dc96 100644 --- a/lib/Service/ProviderService.php +++ b/lib/Service/ProviderService.php @@ -290,6 +290,9 @@ class ProviderService implements IProviderService { */ private function loadProvidersFromList(string $appId, array $providers) { $version = $this->configService->getCloudVersion(); + if (array_key_exists('@attributes', $providers)) { + $providers = [$providers]; + } foreach ($providers AS $provider) { if (is_array($provider)) { $attributes = $provider['@attributes']; |