From ed3563d90e977b7df956e1cafec22dc0c2bc3302 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Diaz Date: Tue, 13 Oct 2015 12:22:41 +0200 Subject: [PATCH] Fixed module proc data in tree view. Ticket #2713 --- pandora_console/include/functions_treeview.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index a046ada35d..386da0ba10 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -144,9 +144,15 @@ function treeview_printModuleTable($id_module, $server_data = false) { if (is_numeric($last_data["datos"]) && $last_data["datos"] == 1) { $data = "" . $config["render_proc_ok"] . ""; } - else { + else if (is_numeric($last_data["datos"]) && $last_data["datos"] == 0){ $data = "" . $config["render_proc_fail"] . ""; } + else { + if (is_numeric($last_data["datos"])) + $data = "" . format_numeric($last_data["datos"]) . ""; + else + $data = "" . substr(io_safe_output($last_data['datos']),0,12) . ""; + } } else { if (is_numeric($last_data["datos"]))