SelfServiceController: check for null values

fixes #2614
This commit is contained in:
Thomas Gelf 2022-10-27 11:53:13 +02:00
parent 5462784507
commit 01a80c2da8
2 changed files with 4 additions and 1 deletions

View File

@ -275,7 +275,7 @@ class SelfServiceController extends ActionController
// PluginsUrl => framework_plugins_url
];
$username = $settings->get('self-service/icinga_service_user');
if (strlen($username)) {
if ($username !== null && strlen($username) > 0) {
$params['icinga_service_user'] = $username;
}

View File

@ -21,6 +21,9 @@ v1.10.2 (unreleased)
* FEATURE: more details shown in error messages related to invalid characters (#2646)
* FIX: snapshots for Baskets containing Baskets failed since v1.10 (#2644)
### REST API
* FIX: Self Service API returned invalid JSON on PHP 8.1 (#2614)
### Internals
* FIX: issue with empty activity log, deprecate outdated method (#2630)