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…
Reference in New Issue