`LdapDiscoveryPage::getValues()`: Do not return null
This commit is contained in:
parent
d3bc7b6731
commit
a3091b3617
|
@ -97,12 +97,12 @@ class LdapDiscoveryPage extends Form
|
||||||
*
|
*
|
||||||
* @param bool $suppressArrayNotation
|
* @param bool $suppressArrayNotation
|
||||||
*
|
*
|
||||||
* @return array|null
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getValues($suppressArrayNotation = false)
|
public function getValues($suppressArrayNotation = false)
|
||||||
{
|
{
|
||||||
if (! isset($this->discovery) || ! $this->discovery->isSuccess()) {
|
if (! isset($this->discovery) || ! $this->discovery->isSuccess()) {
|
||||||
return null;
|
return [];
|
||||||
}
|
}
|
||||||
$disc = $this->discovery;
|
$disc = $this->discovery;
|
||||||
return array(
|
return array(
|
||||||
|
|
Loading…
Reference in New Issue