Cleaned source code style. (only for test git)
This commit is contained in:
parent
03890a5295
commit
1bd2166d7e
|
@ -1625,16 +1625,17 @@ function groups_get_tree(&$groups, $parent = false) {
|
|||
|
||||
function groups_get_all_hierarchy_group ($id_group, $hierarchy = array()) {
|
||||
global $config;
|
||||
|
||||
|
||||
if ($id_group == 0) {
|
||||
$hierarchy = groups_get_childrens($id_group);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
$hierarchy[] = $id_group;
|
||||
$parent = db_get_value('parent','tgrupo','id_grupo',$id_group);
|
||||
|
||||
|
||||
if ($parent !== 0) {
|
||||
$propagate = db_get_value('propagate','tgrupo','id_grupo',$parent);
|
||||
|
||||
|
||||
if ($propagate == 1) {
|
||||
//$childrens_ids_parent = array($parent);
|
||||
$hierarchy[] = $parent;
|
||||
|
@ -1645,7 +1646,7 @@ function groups_get_all_hierarchy_group ($id_group, $hierarchy = array()) {
|
|||
$hierarchy[] = (int)$child['id_grupo'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$hierarchy = groups_get_all_hierarchy_group ($parent, $hierarchy);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue