summaryrefslogtreecommitdiff
path: root/src/application/mystic/forum/utils/RequestUtils.php
diff options
context:
space:
mode:
authorJonas Kohl2024-09-13 19:57:43 +0200
committerJonas Kohl2024-09-13 19:57:43 +0200
commit93817fef3ead7cfd4fcde25ea2bcec02d01310a4 (patch)
tree60f6ab69bbf2360d7cc518023090b8bf61bfd5b1 /src/application/mystic/forum/utils/RequestUtils.php
parent086e2d2668784469ec114f6e6fd2b3dace3d7c3b (diff)
A lot of changes again
Diffstat (limited to 'src/application/mystic/forum/utils/RequestUtils.php')
-rw-r--r--src/application/mystic/forum/utils/RequestUtils.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/application/mystic/forum/utils/RequestUtils.php b/src/application/mystic/forum/utils/RequestUtils.php
index f6ce3a3..6599052 100644
--- a/src/application/mystic/forum/utils/RequestUtils.php
+++ b/src/application/mystic/forum/utils/RequestUtils.php
@@ -30,9 +30,10 @@ final class RequestUtils {
public static function getRequiredField(string $field): string {
$fieldValue = $_POST[$field] ?? null;
if ($fieldValue === null) {
- http_response_code(400);
- Messaging::error("Missing required field $field");
- exit;
+ //http_response_code(400);
+ //Messaging::error("Missing required field $field");
+ RequestUtils::triggerFormError("Missing required field '$field'");
+ //exit;
}
return $fieldValue;
}