From 8486e3c64fa16549a2413dbf1d20e27c4604281c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Thu, 22 Apr 2021 09:40:25 +0200 Subject: [PATCH] Set default values for max agents in group creation --- pandora_console/include/functions_groups.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_groups.php b/pandora_console/include/functions_groups.php index 1ffb99dc24..1a76ec059f 100644 --- a/pandora_console/include/functions_groups.php +++ b/pandora_console/include/functions_groups.php @@ -756,14 +756,18 @@ function groups_create_group($group_name, $rest_values) $values = array_merge($rest_values, $array_tmp); - if (!isset($values['propagate'])) { + if (isset($values['propagate']) === false) { $values['propagate'] = 0; } - if (!isset($values['disabled'])) { + if (isset($values['disabled']) === false) { $values['disabled'] = 0; } + if (isset($values['max_agents']) === false) { + $values['max_agents'] = 0; + } + $check = db_get_value('nombre', 'tgrupo', 'nombre', $group_name); if (!$check) {