Skip to content

Commit

Permalink
Dev: Only add string if not empty (CintLink)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 8, 2016
1 parent 322b9ba commit 98c8365
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion application/core/plugins/CintLink/model/CintLinkOrder.php
Expand Up @@ -239,7 +239,11 @@ public function getInfo()
$xml = new SimpleXmlElement($raw);
$targetGroup = $xml->{'target-group'};
foreach ($targetGroup->children() as $target) {
$result .= (string) $target->name . ', ';
$content = (string) $target->name;
if ($content != '')
{
$result .= (string) $target->name . ', ';
}
}
$result = trim($result, ', ');
return $result;
Expand Down

0 comments on commit 98c8365

Please sign in to comment.