From 758804e5de93c56fc7daa293342c0b3fe2eacb7f Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Tue, 29 Oct 2019 09:18:21 +0100 Subject: [PATCH] fix minor bug in function groups_get_id_recursive --- pandora_console/include/functions_groups.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_groups.php b/pandora_console/include/functions_groups.php index a1448e37f2..817d7893c7 100644 --- a/pandora_console/include/functions_groups.php +++ b/pandora_console/include/functions_groups.php @@ -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) {