From ce7ca44e8a527bf5f456ae9a3184bf9d8afda859 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 19 Dec 2014 13:15:55 +0100 Subject: [PATCH] Fixed the return icon when is unknown --- pandora_console/include/functions_ui.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index ecc77c7e30..87e3211a85 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -588,7 +588,12 @@ function ui_print_group_icon_path ($id_group, $return = false, $path = "images/g * * @return string HTML with icon of the OS */ -function ui_print_os_icon ($id_os, $name = true, $return = false, $apply_skin = true, $networkmap = false, $only_src = false, $relative = false, $options = false) { +function ui_print_os_icon ($id_os, $name = true, $return = false, + $apply_skin = true, $networkmap = false, $only_src = false, + $relative = false, $options = false) { + + + $subfolter = 'os_icons'; if ($networkmap) { $subfolter = 'networkmap'; @@ -598,7 +603,8 @@ function ui_print_os_icon ($id_os, $name = true, $return = false, $apply_skin = $os_name = get_os_name ($id_os); if (empty ($icon)) { if ($only_src) { - $output = html_print_image("images/" . $subfolter . "/unknown.png", false, $options, true, $relative); + $output = html_print_image("images/" . $subfolter . "/unknown.png", + true, $options, true, $relative); } else { return "-";