From ff69f65c32c37ae9065662cbb53d267a0954b75f Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 14 Oct 2013 13:58:55 +0000 Subject: [PATCH] 2013-10-14 Miguel de Dios * include/functions_groups.php: into the function "groups_get_group_to_list" fixed PHP warnings about uninitialized vars. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8909 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_groups.php | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5b54017596..ddf2062032 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2013-10-14 Miguel de Dios + + * include/functions_groups.php: into the function + "groups_get_group_to_list" fixed PHP warnings about uninitialized + vars. + 2013-10-14 Miguel de Dios * operation/agentes/status_monitor.php: fixed the filter by group diff --git a/pandora_console/include/functions_groups.php b/pandora_console/include/functions_groups.php index 39d60a1592..d75b9eff5c 100644 --- a/pandora_console/include/functions_groups.php +++ b/pandora_console/include/functions_groups.php @@ -1458,13 +1458,16 @@ function groups_get_group_to_list($group, $groups_count, &$symbolBranchs) { $data[5] = ''; } else { - $data[5] = '' . html_print_image("images/config.png", true, array("alt" => __('Edit'), "title" => __('Edit'), "border" => '0')); + $data[5] = '' . html_print_image("images/config.png", true, array("alt" => __('Edit'), "title" => __('Edit'), "border" => '0')); //Check if there is only a group to unable delete it if ($groups_count > 2) { $data[5] .= '  ' . - '' . html_print_image("images/cross.png", true, array("alt" => __('Delete'), "border" => '0')); + 'id_group=' . $group['id_grupo'] . '&' . + 'delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . html_print_image("images/cross.png", true, array("alt" => __('Delete'), "border" => '0')); } }