Cleaned source code style. (only for test git)

This commit is contained in:
mdtrooper 2014-12-04 14:39:35 +01:00
parent 03890a5295
commit 1bd2166d7e
1 changed files with 6 additions and 5 deletions

View File

@ -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);
}
}