Code cleaning

This commit is contained in:
Benjamin Renard 2020-11-30 19:44:14 +01:00
parent 106a2d9f04
commit b4a5824ee8
5 changed files with 23 additions and 25 deletions

View file

@ -125,14 +125,12 @@ class LSioFormatDriver {
if (!isset($retone[$attr])) $retone[$attr] = array(); if (!isset($retone[$attr])) $retone[$attr] = array();
$retone[$attr][] = $one[$key]; $retone[$attr][] = $one[$key];
} }
if (is_array($generated_fields)) {
foreach ($generated_fields as $attr => $format) { foreach ($generated_fields as $attr => $format) {
$value = getFData($format, $retone); $value = getFData($format, $retone);
if (!empty($value)) { if (!empty($value)) {
$retone[$attr] = array($value); $retone[$attr] = array($value);
} }
} }
}
$retall[] = $retone; $retall[] = $retone;
} }