fix minor bug in function groups_get_id_recursive
This commit is contained in:
parent
ffb9b9052c
commit
758804e5de
|
@ -551,7 +551,7 @@ function groups_get_id_recursive($id_parent, $all=false)
|
|||
// Check propagate
|
||||
$propagate = db_get_value_filter('propagate', 'tgrupo', ['id_grupo' => $id_parent]);
|
||||
|
||||
if (($propagate != 1) || $all) {
|
||||
if (($propagate == 1) || $all) {
|
||||
$children = db_get_all_rows_filter('tgrupo', ['parent' => $id_parent, 'disabled' => 0], ['id_grupo']);
|
||||
|
||||
if ($children === false) {
|
||||
|
|
Loading…
Reference in New Issue