mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-19 00:01:00 +08:00
fix compatibility with php8
This commit is contained in:
@@ -26,12 +26,12 @@ if ($action == "confirmuser")
|
||||
if ($action == "edituser")
|
||||
{
|
||||
$userid = $_POST["userid"];
|
||||
$class = 0 + $_POST["class"];
|
||||
$class = $_POST["class"] ?? 0;
|
||||
$vip_added = ($_POST["vip_added"] == 'yes' ? 'yes' : 'no');
|
||||
$vip_until = ($_POST["vip_until"] ? $_POST["vip_until"] : '0000-00-00 00:00:00');
|
||||
|
||||
$warned = $_POST["warned"];
|
||||
$warnlength = 0 + $_POST["warnlength"];
|
||||
$warnlength = $_POST["warnlength"] ?? 0;
|
||||
$warnpm = $_POST["warnpm"];
|
||||
$title = $_POST["title"];
|
||||
$avatar = $_POST["avatar"];
|
||||
|
||||
Reference in New Issue
Block a user