Skip to content

Commit 447e154

Browse files
committed
phpcs clean
1 parent 184a845 commit 447e154

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

webroot/panel/account.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@
140140
";
141141
} else {
142142
if ($SQL->requestExists($USER->getUID())) {
143-
echo "<input type='submit' value='Cancel PI AccountRequest' onclick='return confirm(\"Are you sure you want to cancel this request?\")'/>";
143+
$prompt = "onclick='return confirm(\"Are you sure you want to cancel this request?\")";
144+
echo "<input type='submit' value='Cancel PI AccountRequest' $prompt'/>";
144145
echo "
145146
<label style='margin-left: 10px'>
146147
Your request has been submitted and is currently pending
@@ -149,7 +150,8 @@
149150
";
150151
} else {
151152
echo "<input type='hidden' name='form_type' value='pi_request'/>";
152-
echo "<input type='submit' value='Request PI Account' onclick='return confirm(\"Are you sure you want to request a PI account?\")'/>";
153+
$prompt = "onclick='return confirm(\"Are you sure you want to request a PI account?\")";
154+
echo "<input type='submit' value='Request PI Account' $prompt'/>";
153155
}
154156
}
155157
echo "</form>";

0 commit comments

Comments
 (0)