Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-04-24 13:04:00 +0300
committerGitHub <noreply@github.com>2019-04-24 13:04:00 +0300
commitc474bb5c38e5ec95ac4113ee572a4417b666fb71 (patch)
treee7174ba11f04ad7a52f61fae32ef05f45aa6c259
parentcef676225956ee68352871bc833df97e70c64956 (diff)
parentdeca9b8aee1d1436bc26709a7d44337c03ffb463 (diff)
Merge pull request #488 from nextcloud/bugfix-one-provider
Fix provider loading if only one provider is available
-rw-r--r--lib/Service/ProviderService.php3
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'];