DirectorObjectForm: fix exception on no data

This commit is contained in:
Thomas Gelf 2016-03-29 18:50:52 +02:00
parent 9f5f955310
commit f25b47e1bc
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}