content doesn't have to be a array, e.g. for category=type, content is 'saml'

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Björn Schiessle 2018-11-19 12:25:12 +01:00
parent e38a46eb64
commit 087efb7359
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 1 additions and 1 deletions

View File

@ -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) {