2011-07-19 Sergio Martin <sergio.martin@artica.es>
* include/functions_html.php: Fixed check when no agents for bug 3371316 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4586 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
550204aed6
commit
dc9e830887
|
@ -1,3 +1,8 @@
|
|||
2011-07-19 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_html.php: Fixed check when no
|
||||
agents for bug 3371316
|
||||
|
||||
2011-07-19 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_graph.php
|
||||
|
|
|
@ -193,12 +193,17 @@ function html_print_select_groups($id_user = false, $privilege = "AR", $returnAl
|
|||
unset($user_groups[$id_group]);
|
||||
}
|
||||
|
||||
// First group it's needed to retrieve its parent group
|
||||
$first_group = array_slice($user_groups, 0, 1);
|
||||
$parent_group = $first_group[0]['parent'];
|
||||
|
||||
$user_groups_tree = groups_get_groups_tree_recursive($user_groups, $parent_group);
|
||||
|
||||
if(empty($user_groups)) {
|
||||
$user_groups_tree = array();
|
||||
}
|
||||
else {
|
||||
// First group it's needed to retrieve its parent group
|
||||
$first_group = array_slice($user_groups, 0, 1);
|
||||
$parent_group = $first_group[0]['parent'];
|
||||
|
||||
$user_groups_tree = groups_get_groups_tree_recursive($user_groups, $parent_group);
|
||||
}
|
||||
|
||||
$fields = array();
|
||||
foreach ($user_groups_tree as $group) {
|
||||
if (isset($config['text_char_long'])) {
|
||||
|
|
Loading…
Reference in New Issue