summaryrefslogtreecommitdiff
path: root/src/application/mystic/forum/utils/RequestUtils.php
diff options
context:
space:
mode:
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;
}