mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
forms/Config: Don't call array_map
without an array
This commit is contained in:
parent
098bcfb98f
commit
425699d7b0
@ -321,7 +321,7 @@ class ResourceConfigForm extends ConfigForm
|
|||||||
$inspection = static::inspectResource($this);
|
$inspection = static::inspectResource($this);
|
||||||
if ($inspection !== null) {
|
if ($inspection !== null) {
|
||||||
$join = function ($e) use (&$join) {
|
$join = function ($e) use (&$join) {
|
||||||
return is_string($e) ? $e : join("\n", array_map($join, $e));
|
return is_array($e) ? join("\n", array_map($join, $e)) : $e;
|
||||||
};
|
};
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'note',
|
'note',
|
||||||
|
@ -398,7 +398,7 @@ class UserBackendConfigForm extends ConfigForm
|
|||||||
$inspection = static::inspectUserBackend($this);
|
$inspection = static::inspectUserBackend($this);
|
||||||
if ($inspection !== null) {
|
if ($inspection !== null) {
|
||||||
$join = function ($e) use (&$join) {
|
$join = function ($e) use (&$join) {
|
||||||
return is_string($e) ? $e : join("\n", array_map($join, $e));
|
return is_array($e) ? join("\n", array_map($join, $e)) : $e;
|
||||||
};
|
};
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'note',
|
'note',
|
||||||
|
@ -230,7 +230,7 @@ class UserGroupBackendForm extends ConfigForm
|
|||||||
$inspection = static::inspectUserBackend($this);
|
$inspection = static::inspectUserBackend($this);
|
||||||
if ($inspection !== null) {
|
if ($inspection !== null) {
|
||||||
$join = function ($e) use (&$join) {
|
$join = function ($e) use (&$join) {
|
||||||
return is_string($e) ? $e : join("\n", array_map($join, $e));
|
return is_array($e) ? join("\n", array_map($join, $e)) : $e;
|
||||||
};
|
};
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'note',
|
'note',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user