2013-09-23 Sergio Martin <sergio.martin@artica.es>
* include/functions_groups.php: Fix groups in tree way when All group is not exist git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8799 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
358e98d497
commit
bad009699b
|
@ -1,3 +1,8 @@
|
|||
2013-09-23 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_groups.php: Fix groups in tree way
|
||||
when All group is not exist
|
||||
|
||||
2013-09-22 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* include/help/ja/help_alert_config.php: Translated new sentences.
|
||||
|
|
|
@ -498,7 +498,14 @@ function groups_get_groups_tree_recursive($groups, $trash = 0, $trash2 = 0) {
|
|||
$tree[$group['parent']]['branch'][$key] = &$tree[$key];
|
||||
|
||||
}
|
||||
$tree = array($tree[0]);
|
||||
|
||||
// Depends on the All group we give different format
|
||||
if (isset($groups[0])) {
|
||||
$tree = array($tree[0]);
|
||||
}
|
||||
else {
|
||||
$tree = $tree[0]['branch'];
|
||||
}
|
||||
|
||||
$return = groups_flatten_tree_groups($tree, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue