Some bugfixes (#1326)

* Some bugfixes

* Update CHANGELOG.md

* Update functions_admin.php
This commit is contained in:
Roman Kelesidis 2024-01-19 00:33:29 +07:00 committed by GitHub
commit a46c40e106
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 33 deletions

View file

@ -269,6 +269,11 @@ function auth($type, $forum_id, $ug_data, array $f_access = [], $group_perm = UG
$auth = $auth_fields = $u_access = [];
$add_auth_type_desc = ($forum_id != AUTH_LIST_ALL);
// Check forum existence
if ($add_auth_type_desc && !forum_exists($forum_id)) {
return [];
}
//
// Get $auth_fields
//
@ -304,7 +309,7 @@ function auth($type, $forum_id, $ug_data, array $f_access = [], $group_perm = UG
}
if (empty($f_access)) {
return [];
trigger_error(__FUNCTION__ . '(): empty $f_access', E_USER_ERROR);
}
//