fix: [internal] attribute restsearch - handle empty lines returned from the module better

- no more empty lines hopefully in some exports
pull/5451/head
iglocska 2019-12-05 09:42:49 +01:00
parent 4f646d41c0
commit bde75e9443
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 3 additions and 2 deletions

View File

@ -4395,8 +4395,9 @@ class Attribute extends AppModel
$temp = '';
foreach ($results as $attribute) {
$elementCounter++;
$temp .= $exportTool->handler($attribute, $exportToolParams);
if ($temp !== '') {
$handlerResult = $exportTool->handler($attribute, $exportToolParams);
$temp .= $handlerResult;
if ($handlerResult !== '') {
if ($i != count($results) -1) {
$temp .= $exportTool->separator($exportToolParams);
}