From bf6e9cf4f6a252c8225320efbe538ef8f2d94b97 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 16 Apr 2015 10:50:43 +0200 Subject: [PATCH] Fixed error when flash_chart is false, colors of pie bad drawn, tiquet: #2107 (cherry picked from commit db3e276195dc28afd1cbc31cf4f75d4fe7c775b1) --- pandora_console/include/functions_graph.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index d2b3d5f6f8..df10334c45 100755 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1554,10 +1554,14 @@ function graph_agent_status ($id_agent = false, $width = 300, $height = 200, $re $water_mark = array('file' => $config['homedir'] . "/images/logo_vertical_water.png", 'url' => ui_get_full_url("images/logo_vertical_water.png", false, false, false)); - $colors = array(COL_CRITICAL, COL_WARNING, COL_NORMAL, COL_UNKNOWN); + //$colors = array(COL_CRITICAL, COL_WARNING, COL_NORMAL, COL_UNKNOWN); + $colors[__('Critical')] = COL_CRITICAL; + $colors[__('Warning')] = COL_WARNING; + $colors[__('Normal')] = COL_NORMAL; + $colors[__('Unknown')] = COL_UNKNOWN; if ($show_not_init) { - $colors[] = COL_NOTINIT; + $colors[__('Not init')] = COL_NOTINIT; } if (array_sum($data) == 0) {