mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +02:00
DirectorObjectForm: fix exception on no data
This commit is contained in:
parent
9f5f955310
commit
f25b47e1bc
@ -1235,6 +1235,11 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
if (array_key_exists($id, $tpl)) {
|
||||
unset($tpl[$id]);
|
||||
}
|
||||
|
||||
if (empty($tpl)) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$tpl = array_combine($tpl, $tpl);
|
||||
return $tpl;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user