Fixed minor error. Ticket: #4169

This commit is contained in:
m-lopez-f 2016-11-03 15:05:30 +01:00
parent 018a115bfa
commit 5a50829e4b
1 changed files with 7 additions and 11 deletions

View File

@ -547,20 +547,16 @@ class Modules {
$output = $sub_string; $output = $sub_string;
} }
} }
if (is_snapshot($module['datos'])){
'<span style="white-space: nowrap;">' .
'<span style="display: none;" class="show_collapside">' . $row[__('Status')] . '&nbsp;&nbsp;</span>' .
'<a target='_blank' href='".io_safe_input($row[$attr[0]])."'><img style="width:300px" src='".io_safe_input($row[$attr[0]])."'>' .
$output . '</a>' . '</span>';
}
else{
$row[7] = $row[__('Data')] = $row[7] = $row[__('Data')] =
'<span style="white-space: nowrap;">' . '<span style="white-space: nowrap;">' .
'<span style="display: none;" class="show_collapside">' . $row[__('Status')] . '&nbsp;&nbsp;</span>' . '<span style="display: none;" class="show_collapside">' .
$row[__('Status')] . '&nbsp;&nbsp;</span>' .
'<a data-ajax="false" class="ui-link" ' . '<a data-ajax="false" class="ui-link" ' .
'href="index.php?page=module_graph&id=' . $module['id_agente_modulo'] . '&id_agent=' . $this->id_agent . '">' . 'href="index.php?page=module_graph&id=' .
$output . '</a>' . '</span>'; $module['id_agente_modulo'] . '&id_agent=' .
} $this->id_agent . '">' . $output . '</a>' . '</span>';
if (!$ajax) { if (!$ajax) {
if ($this->columns['agent']) { if ($this->columns['agent']) {
unset($row[0]); unset($row[0]);