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:
authorJulius Härtl <jus@bitgrid.net>2019-04-24 12:51:07 +0300
committerJulius Härtl <jus@bitgrid.net>2019-04-24 12:51:42 +0300
commitdeca9b8aee1d1436bc26709a7d44337c03ffb463 (patch)
treee7174ba11f04ad7a52f61fae32ef05f45aa6c259
parentcef676225956ee68352871bc833df97e70c64956 (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.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'];