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