diff --git a/webroot/panel/account.php b/webroot/panel/account.php index 3ab19508..7221abca 100644 --- a/webroot/panel/account.php +++ b/webroot/panel/account.php @@ -72,7 +72,7 @@ if ($SQL->requestExists($USER->uid, UnitySQL::REQUEST_BECOME_PI)) { UnityHTTPD::badRequest("already requested to be PI"); } - if (!isset($_POST["tos"]) || $_POST["tos"] != "agree") { + if ($_POST["tos"] != "agree") { UnityHTTPD::badRequest("user did not agree to terms of service"); } $USER->getPIGroup()->requestGroup($SEND_PIMESG_TO_ADMINS); diff --git a/webroot/panel/groups.php b/webroot/panel/groups.php index 7fcceb16..41fc4524 100644 --- a/webroot/panel/groups.php +++ b/webroot/panel/groups.php @@ -30,7 +30,7 @@ switch ($_POST["form_type"]) { case "addPIform": $pi_account = $getPIGroupFromPost(); - if (!isset($_POST["tos"]) || $_POST["tos"] != "agree") { + if ($_POST["tos"] != "agree") { UnityHTTPD::badRequest("user did not agree to terms of service"); } if ($pi_account->exists()) {