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

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-11-19 14:25:12 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2018-11-19 14:25:12 +0300
commit087efb7359a7a860791545cd22b910acd26567ce (patch)
treef3d0576e233e3031fe7d5afd7a626233984329aa /lib/Controller
parente38a46eb6496e6dad2d4bcd0ed434967e2c923ff (diff)
content doesn't have to be a array, e.g. for category=type, content is 'saml'
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/SettingsController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php
index 2851eae3..efe80eee 100644
--- a/lib/Controller/SettingsController.php
+++ b/lib/Controller/SettingsController.php
@@ -96,7 +96,7 @@ class SettingsController extends Controller {
];
/* Fetch all config values for the given providerId */
foreach ($params as $category => $content) {
- if (empty($content) || $category === 'providers') {
+ if (!is_array($content) || $category === 'providers') {
continue;
}
foreach ($content as $setting => $details) {