mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Update functions.php
This commit is contained in:
parent
14b456c31e
commit
2a1c0c6ebe
1 changed files with 5 additions and 0 deletions
|
@ -264,6 +264,11 @@ function auth($type, $forum_id, $ug_data, array $f_access = [], $group_perm = UG
|
||||||
{
|
{
|
||||||
global $lang, $bf, $datastore;
|
global $lang, $bf, $datastore;
|
||||||
|
|
||||||
|
// Check for forum existence
|
||||||
|
if (!forum_exists($forum_id)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
$is_guest = true;
|
$is_guest = true;
|
||||||
$is_admin = false;
|
$is_admin = false;
|
||||||
$auth = $auth_fields = $u_access = [];
|
$auth = $auth_fields = $u_access = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue