From 5cc0551b8f732bb034f1b41572754b3671d3d4e2 Mon Sep 17 00:00:00 2001 From: Simon Leary Date: Tue, 3 Jun 2025 10:03:27 -0400 Subject: [PATCH 1/2] phpcs --- webroot/panel/new_account.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/webroot/panel/new_account.php b/webroot/panel/new_account.php index 5abb4535..a4a56bc9 100644 --- a/webroot/panel/new_account.php +++ b/webroot/panel/new_account.php @@ -30,8 +30,7 @@ } $USER->getPIGroup()->requestGroup($SEND_PIMESG_TO_ADMINS); } - } - elseif (isset($_POST["cancel"])) { + } elseif (isset($_POST["cancel"])) { foreach ($pending_requests as $request) { if ($request["request_for"] == "admin") { $USER->getPIGroup()->cancelGroupRequest(); @@ -69,7 +68,13 @@

Requesting Ownership of PI Account/Group

You will receive an email when your account has been approved.

-

Email if you have not heard back in one business day.

+

+ $name if you have not heard back in one business day.'; + ?> +


Requesting Membership in a PI Group

You will receive an email when your account has been approved by the PI.

From b97cbd0bed808eac8be838a38b2996b74a1f0650 Mon Sep 17 00:00:00 2001 From: Simon Leary Date: Tue, 3 Jun 2025 10:19:51 -0400 Subject: [PATCH 2/2] variables don't work in single quote strings --- webroot/panel/new_account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/panel/new_account.php b/webroot/panel/new_account.php index a4a56bc9..777157fa 100644 --- a/webroot/panel/new_account.php +++ b/webroot/panel/new_account.php @@ -72,7 +72,7 @@ $name if you have not heard back in one business day.'; + echo "Email $name if you have not heard back in one business day."; ?>