diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php
index 52ed76bd6b..2f32c9683d 100644
--- a/pandora_console/include/functions_html.php
+++ b/pandora_console/include/functions_html.php
@@ -4132,6 +4132,10 @@ function html_print_table(&$table, $return=false)
} else {
$headStyle = '';
}
+
+ if (isset($table->headStyle[$heading])) {
+ $headStyle = ' style = "'.$table->headStyle[$heading].'" ';
+ }
$output .= '
'.$heading.' | ';
}
diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php
index 1ee292da27..35371a4f57 100644
--- a/pandora_console/include/functions_reporting_html.php
+++ b/pandora_console/include/functions_reporting_html.php
@@ -6380,6 +6380,7 @@ function reporting_html_sql($table, $item, $pdf=0)
// Print the header.
foreach ($row as $key => $value) {
$table2->head[] = $key;
+ $table2->headStyle[$key] = 'text-align: center;';
}
}