mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Some bugfixes (#1326)
* Some bugfixes * Update CHANGELOG.md * Update functions_admin.php
This commit is contained in:
parent
1a34072e98
commit
a46c40e106
4 changed files with 16 additions and 33 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue