From 26a4880f64e4d32662a7311b1258564ca9a5ab82 Mon Sep 17 00:00:00 2001
From: "tatiana.llorente@artica.es" <tatiana.llorente@artica.es>
Date: Tue, 6 Nov 2018 13:49:47 +0100
Subject: [PATCH] Removed duplicated code - #3021

---
 pandora_console/include/functions_reporting_html.php | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php
index 7f92495e89..bf06493b79 100644
--- a/pandora_console/include/functions_reporting_html.php
+++ b/pandora_console/include/functions_reporting_html.php
@@ -480,8 +480,8 @@ function reporting_html_SLA($table, $item, $mini) {
 					$row[] = $sla['module'];
 
 					if(is_numeric($sla['dinamic_text'])){
-						$row[] = sla_truncate($sla['max'], $config['graph_precision']) . " / " . 
-							 sla_truncate($sla['min'], $config['graph_precision']);
+						$row[] = sla_truncate($sla['max'], $config['graph_precision']) . " / " .
+							sla_truncate($sla['min'], $config['graph_precision']);
 					}
 					else{
 						$row[] = $sla['dinamic_text'];
@@ -489,14 +489,6 @@ function reporting_html_SLA($table, $item, $mini) {
 					$row[] = round($sla['sla_limit'], 2) . "%";
 
 					if (!$hide_notinit_agent) {
-						if(is_numeric($sla['dinamic_text'])){
-							$row[] = sla_truncate($sla['max'], $config['graph_precision']) . " / " .
-									sla_truncate($sla['min'], $config['graph_precision']);
-						}
-						else{
-							$row[] = $sla['dinamic_text'];
-						}
-						$row[] = round($sla['sla_limit'], 2) . "%";
 
 						if (reporting_sla_is_not_init_from_array($sla)) {
 							$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_NOTINIT.';">' .