first check if it is an array and that the key exists, to avoid error messages in the log file

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

View File

@ -100,7 +100,7 @@ class SettingsController extends Controller {
continue;
}
foreach ($content as $setting => $details) {
if ($details['global']) {
if (isset($details['global']) && $details['global'] === true) {
continue;
}
$prefix = $providerId === '1' ? '' : $providerId . '-';