Merge pull request #4607 from Icinga/fix/error-on-skipping-dlap-in-setup-wizard

Fix TypeError when skipping ldap in setup wizard
This commit is contained in:
Eric Lippmann 2021-11-17 15:05:58 +01:00 committed by GitHub
commit 27811dba7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -97,12 +97,12 @@ class LdapDiscoveryPage extends Form
*
* @param bool $suppressArrayNotation
*
* @return array|null
* @return array
*/
public function getValues($suppressArrayNotation = false)
{
if (! isset($this->discovery) || ! $this->discovery->isSuccess()) {
return null;
return [];
}
$disc = $this->discovery;
return array(