We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a58810 commit 8f2b2c6Copy full SHA for 8f2b2c6
webroot/panel/new_account.php
@@ -14,7 +14,7 @@
14
15
if ($_SERVER["REQUEST_METHOD"] == "POST") {
16
if (isset($_POST["new_user_sel"])) {
17
- if (($_POST["eula"] ?? "disagree") != "agree") {
+ if (!isset($_POST["eula"]) || $_POST["eula"] != "agree") {
18
UnitySite::badRequest("user did not agree to EULA");
19
}
20
if ($_POST["new_user_sel"] == "not_pi") {
@@ -25,7 +25,7 @@
25
$form_group->newUserRequest($USER);
26
27
if ($_POST["new_user_sel"] == "pi") {
28
- if (($_POST["confirm_pi"] ?? "disagree") != "agree") {
+ if (!isset($_POST["confirm_pi"]) || $_POST["confirm_pi"] != "agree") {
29
UnitySite::badRequest("user did not agree to account policy");
30
31
$USER->getPIGroup()->requestGroup($SEND_PIMESG_TO_ADMINS);
0 commit comments