diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 3cb52cdbc0..6e5aaef69a 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -609,12 +609,20 @@ function ui_print_timestamp($unixtime, $return=false, $option=[]) $tag = 'span'; } - if (empty($option['style']) === true) { - $style = 'class="'.($option['class'] ?? 'nowrap').'"'; + if (empty($option['class']) === false) { + $class = 'class="nowrap '.$option['class'].'"'; } else { - $style = 'style="'.$option['style'].'"'; + $class = 'class="nowrap"'; } + if (empty($option['style']) === false) { + $style = 'style="'.$option['style'].'"'; + } else { + $style = 'style=""'; + } + + $style .= ' '.$class; + if (empty($option['prominent']) === false) { $prominent = $option['prominent']; } else {