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:
commit
27811dba7b
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue