Update functions.php

This commit is contained in:
Roman Kelesidis 2024-01-17 16:24:38 +07:00
parent dbdb5dcbce
commit 9e2e058cfe

View File

@ -351,6 +351,9 @@ function auth ($type, $forum_id, $ug_data, $f_access = array(), $group_perm = UG
$auth = $auth_fields = $u_access = array();
$add_auth_type_desc = ($forum_id != AUTH_LIST_ALL);
// Если форум не существует, то возвращаем пустой массив
if ($add_auth_type_desc && !forum_exists($forum_id)) return array();
//
// Get $auth_fields
//