Skip to content

Commit 8f2b2c6

Browse files
committed
revert unnecessary changes
1 parent 4a58810 commit 8f2b2c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webroot/panel/new_account.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
if ($_SERVER["REQUEST_METHOD"] == "POST") {
1616
if (isset($_POST["new_user_sel"])) {
17-
if (($_POST["eula"] ?? "disagree") != "agree") {
17+
if (!isset($_POST["eula"]) || $_POST["eula"] != "agree") {
1818
UnitySite::badRequest("user did not agree to EULA");
1919
}
2020
if ($_POST["new_user_sel"] == "not_pi") {
@@ -25,7 +25,7 @@
2525
$form_group->newUserRequest($USER);
2626
}
2727
if ($_POST["new_user_sel"] == "pi") {
28-
if (($_POST["confirm_pi"] ?? "disagree") != "agree") {
28+
if (!isset($_POST["confirm_pi"]) || $_POST["confirm_pi"] != "agree") {
2929
UnitySite::badRequest("user did not agree to account policy");
3030
}
3131
$USER->getPIGroup()->requestGroup($SEND_PIMESG_TO_ADMINS);

0 commit comments

Comments
 (0)