mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update functions.php
This commit is contained in:
parent
dbdb5dcbce
commit
9e2e058cfe
@ -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
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user