mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Update announce.php
This commit is contained in:
parent
933c6c8672
commit
274119dfda
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ if ($lp_info) {
|
|||
|
||||
// Assign variables
|
||||
$user_id = $row['user_id'];
|
||||
define('IS_GUEST', $user_id == GUEST_UID);
|
||||
define('IS_GUEST', (int)$user_id === GUEST_UID);
|
||||
define('IS_ADMIN', !IS_GUEST && (int)$row['user_level'] === ADMIN);
|
||||
define('IS_MOD', !IS_GUEST && (int)$row['user_level'] === MOD);
|
||||
define('IS_GROUP_MEMBER', !IS_GUEST && (int)$row['user_level'] === GROUP_MEMBER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue