Skip to content

Commit

Permalink
Merge pull request #4607 from Icinga/fix/error-on-skipping-dlap-in-se…
Browse files Browse the repository at this point in the history
…tup-wizard

Fix TypeError when skipping ldap in setup wizard

(cherry picked from commit 27811db)
  • Loading branch information
lippserd authored and sukhwinder33445 committed Nov 18, 2021
1 parent ef7f40d commit ba440e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/setup/application/forms/LdapDiscoveryPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ public function isValid($data)
*
* @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(
Expand Down

0 comments on commit ba440e5

Please sign in to comment.