if (isset($user)) {
$uinfo = getusrinfo($user);
$ulevel = $uinfo['user_level'];
$uactive = $uinfo['user_active'];
if (($ulevel < 1) OR ($uactive < 1)) {
unset($user);
unset($cookie);
$sql = 'DELETE FROM `' . $prefix . '_bbsessions` WHERE `session_user_id`="' . $uinfo['user_id'] . '"';
$db->sql_query($sql);
}
这是在我运行 php 7.4 时发生的。使用 php 7.3 这个问题是可见的。
整个文件是这样的
注意:尝试访问 /www.bestbuildpc.org/modules/Your_Account/includes/mainfileend.php 第 24 行中 null 类型值的数组偏移量
注意:尝试访问 /www.bestbuildpc.org/modules/Your_Account/includes/mainfileend.php 第 25 行中 null 类型值的数组偏移量
注意:尝试访问 /www.bestbuildpc.org/modules/Your_Account/includes/mainfileend.php 第 29 行中 null 类型值的数组偏移量