fix to a display bug on the event index when short tags are used

pull/652/head
Iglocska 2015-09-10 16:21:16 +02:00
parent 2902c96f3c
commit b6857b4743
1 changed files with 2 additions and 2 deletions

View File

@ -127,9 +127,9 @@
<td style = "max-width: 200px;width:10px;">
<?php foreach ($event['EventTag'] as $tag):
$tagText = "&nbsp;";
if (Configure::read('MISP.full_tags_on_event_index')) $tagText = $tag['Tag']['name'];
if (Configure::read('MISP.full_tags_on_event_index')) $tagText = h($tag['Tag']['name']);
?>
<span class=tag style="margin-bottom:3px;background-color:<?php echo h($tag['Tag']['colour']);?>;color:<?php echo $this->TextColour->getTextColour($tag['Tag']['colour']);?>;" title="<?php echo h($tag['Tag']['name']); ?>"><?php echo h($tagText); ?></span>
<span class=tag style="margin-bottom:3px;background-color:<?php echo h($tag['Tag']['colour']);?>;color:<?php echo $this->TextColour->getTextColour($tag['Tag']['colour']);?>;" title="<?php echo h($tag['Tag']['name']); ?>"><?php echo $tagText; ?></span>
<?php endforeach; ?>
</td>
<?php endif; ?>