mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
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
|
// Check propagate
|
||||||
$propagate = db_get_value_filter('propagate', 'tgrupo', ['id_grupo' => $id_parent]);
|
$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']);
|
$children = db_get_all_rows_filter('tgrupo', ['parent' => $id_parent, 'disabled' => 0], ['id_grupo']);
|
||||||
|
|
||||||
if ($children === false) {
|
if ($children === false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user