Skip to content

Commit d6e1aac

Browse files
committed
fix quotes in account.php
1 parent 263dd43 commit d6e1aac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

webroot/panel/account.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@
164164
";
165165
} else {
166166
if ($SQL->requestExists($USER->uid)) {
167-
$prompt = "onclick='return confirm(\"Are you sure you want to cancel this request?\")";
168-
echo "<input type='submit' value='Cancel PI Account Request' $prompt'/>";
167+
$onclick = "return confirm(\"Are you sure you want to cancel this request?\")";
168+
echo "<input type='submit' value='Cancel PI Account Request' onclick='$onclick'/>";
169169
echo "
170170
<label style='margin-left: 10px'>
171171
Your request has been submitted and is currently pending
@@ -174,8 +174,8 @@
174174
";
175175
} else {
176176
echo "<input type='hidden' name='form_type' value='pi_request'/>";
177-
$prompt = "onclick='return confirm(\"Are you sure you want to request a PI account?\")";
178-
echo "<input type='submit' value='Request PI Account' $prompt'/>";
177+
$onclick = "return confirm(\"Are you sure you want to request a PI account?\")";
178+
echo "<input type='submit' value='Request PI Account' onclick='$onclick'/>";
179179
}
180180
}
181181
echo "</form>";

0 commit comments

Comments
 (0)