mirror of https://github.com/MISP/MISP
fix: [internal] attribute restsearch - handle empty lines returned from the module better
- no more empty lines hopefully in some exportspull/5451/head
parent
4f646d41c0
commit
bde75e9443
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue