From 93fa54928bc6cfe8a39b81b7b8096ba2160b6594 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Fri, 22 Apr 2022 15:38:09 +0800 Subject: [PATCH] fix invite pager --- include/functions.php | 2 +- public/invite.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/functions.php b/include/functions.php index 3369f805..6e729958 100644 --- a/include/functions.php +++ b/include/functions.php @@ -510,7 +510,7 @@ function get_user_class_name($class, $compact = false, $b_colored = false, $I18N case UC_SYSOP: {$class_name = $this_lang_functions['text_sysops']; break;} case UC_STAFFLEADER: {$class_name = $this_lang_functions['text_staff_leader']; break;} } - if ($class < UC_VIP) { + if ($class < UC_VIP && isset($settingAccount["{$class}_alias"])) { $alias = trim($settingAccount["{$class}_alias"]); if (!empty($alias)) { $class_name = sprintf('%s(%s)', $class_name, $alias); diff --git a/public/invite.php b/public/invite.php index db15ef3b..cad23a93 100644 --- a/public/invite.php +++ b/public/invite.php @@ -7,7 +7,7 @@ parked(); $id = intval($_GET["id"] ?? 0); $type = unesc($_GET["type"] ?? ''); $menuSelected = $_REQUEST['menu'] ?? 'invitee'; -$pageSize = 20; +$pageSize = 50; registration_check('invitesystem',true,false); @@ -132,7 +132,8 @@ if ($type == 'new'){ } print(""); } - print("$pagertop"); + print(""); + print("$pagertop"); } elseif ($menuSelected == 'sent') { $rul = sql_query("SELECT COUNT(*) FROM invites WHERE inviter =".mysql_real_escape_string($id)) or sqlerr(); $arre = mysql_fetch_row($rul);