mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
IcingaServiceForm: check for null
This commit is contained in:
parent
93d0afff10
commit
d92a5e846b
@ -783,7 +783,7 @@ class IcingaServiceForm extends DirectorObjectForm
|
||||
{
|
||||
if ($this->hasBeenSent()) {
|
||||
$name = $this->getSentOrObjectValue('object_name');
|
||||
if (!strlen($name)) {
|
||||
if ($name === null || !strlen($name)) {
|
||||
$this->setElementValue('object_name', end($imports));
|
||||
$this->object->set('object_name', end($imports));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user