Skip to content

Commit fe21543

Browse files
committed
optional
1 parent a4dcdec commit fe21543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/templates/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// UnityHTTPD::validatePostCSRFToken();
88
if (
99
($_SESSION["is_admin"] ?? false) == true
10-
&& (UnityHTTPD::getPostData("form_type") ?? null) == "clearView"
10+
&& UnityHTTPD::getOptionalPostData("form_type") == "clearView"
1111
) {
1212
unset($_SESSION["viewUser"]);
1313
UnityHTTPD::redirect(getURL("admin/user-mgmt.php"));

0 commit comments

Comments
 (0)