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

View file

@ -96,7 +96,7 @@ class SettingsController extends Controller {
]; ];
/* Fetch all config values for the given providerId */ /* Fetch all config values for the given providerId */
foreach ($params as $category => $content) { foreach ($params as $category => $content) {
if (empty($content) || $category === 'providers') { if (!is_array($content) || $category === 'providers') {
continue; continue;
} }
foreach ($content as $setting => $details) { foreach ($content as $setting => $details) {