From 7bc5fb47a00dece3ccc863be442bc893e0daecfd Mon Sep 17 00:00:00 2001 From: "tatiana.llorente@artica.es" Date: Mon, 28 Jan 2019 17:06:35 +0100 Subject: [PATCH] Don't show image for groups without icon - #3446 Former-commit-id: 6a67e368a2aef7f2df04a3937a0466064fa6894e --- pandora_console/godmode/groups/group_list.php | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/pandora_console/godmode/groups/group_list.php b/pandora_console/godmode/groups/group_list.php index 0efe11ad31..9542da72bc 100644 --- a/pandora_console/godmode/groups/group_list.php +++ b/pandora_console/godmode/groups/group_list.php @@ -491,17 +491,23 @@ else{ $url_delete = "index.php?sec=gagente&sec2=godmode/groups/group_list&delete_group=1&id_group=" . $group['id_grupo']; $table->data[$key][0] = $group['id_grupo']; $table->data[$key][1] = "" . $group['nombre'] . ""; - $table->data[$key][2] = html_print_image( - "images/groups_small/" . $group['icon'] . ".png", - true, - array( - "style" => '', - "class" => "bot", - "alt" => $group['nombre'], - "title" => $group['nombre'], - false, false, false, true - ) - ); + + if($group['icon'] != ''){ + $table->data[$key][2] = html_print_image( + "images/groups_small/" . $group['icon'] . ".png", + true, + array( + "style" => '', + "class" => "bot", + "alt" => $group['nombre'], + "title" => $group['nombre'], + false, false, false, true + ) + ); + } + else{ + $table->data[$key][2] = ""; + } //reporting_get_group_stats $table->data[$key][3] = $group['disabled'] ? __('Disabled') : __('Enabled');