Update functions.php

This commit is contained in:
Roman Kelesidis 2024-01-18 23:19:36 +07:00
parent 9e2e058cfe
commit 3582afbff4

View File

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