From 38185651afccdf4ddb3ed3280de59c5d88f2bb10 Mon Sep 17 00:00:00 2001 From: xiaomlove <353856593@qq.com> Date: Fri, 26 Feb 2021 15:18:53 +0800 Subject: [PATCH] fixed modtask.php --- public/modtask.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/modtask.php b/public/modtask.php index 16ac89e6..30c9681b 100644 --- a/public/modtask.php +++ b/public/modtask.php @@ -30,7 +30,7 @@ if ($action == "edituser") $vip_added = ($_POST["vip_added"] == 'yes' ? 'yes' : 'no'); $vip_until = ($_POST["vip_until"] ? $_POST["vip_until"] : null); - $warned = $_POST["warned"]; + $warned = $_POST["warned"] ?? ''; $warnlength = intval($_POST["warnlength"] ?? 0); $warnpm = $_POST["warnpm"]; $title = $_POST["title"]; @@ -84,7 +84,7 @@ if ($action == "edituser") $updateset[] = "supportfor = " . sqlesc($supportfor); $updateset[] = "supportlang = ".sqlesc($supportlang); - if(get_user_class<=$cruprfmanage_class) + if(get_user_class()<=$cruprfmanage_class) { $modcomment = $arr["modcomment"]; }