Fix bug with invalid groups list setup for chat dialogs

This commit is contained in:
Fedor A. Fetisov 2022-10-21 01:02:16 +03:00
parent 1fc048fec9
commit d4640219a6

View File

@ -261,7 +261,7 @@ function setup_survey($name, $email, $group_id, $info, $referrer)
*/ */
function prepare_groups_select($group_id) function prepare_groups_select($group_id)
{ {
$show_groups = ($group_id == '') ? true : group_has_children($group_id); $show_groups = ($group_id == 0) ? true : group_has_children($group_id);
if (!$show_groups) { if (!$show_groups) {
return false; return false;