getFData : fix PHP warning

This commit is contained in:
Benjamin Renard 2020-05-08 12:32:46 +02:00
parent d069df4d6c
commit 7c43439224

View file

@ -60,7 +60,10 @@ function getFData($format,$data,$meth=NULL) {
if(is_array($data)) {
if ($meth==NULL) {
while (preg_match($expr,$format[$i],$ch)) {
if (is_array($data[$ch[1]])) {
if (!isset($data[$ch[1]])) {
$val = '';
}
elseif (is_array($data[$ch[1]])) {
$val = $data[$ch[1]][0];
}
else {