fix minor bug in function groups_get_id_recursive

This commit is contained in:
alejandro-campos 2019-10-29 09:18:21 +01:00
parent ffb9b9052c
commit 758804e5de
1 changed files with 1 additions and 1 deletions

View File

@ -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) {