From 6f41ebe635deb47067f4ed955ed22c03bd0226ab Mon Sep 17 00:00:00 2001 From: muli Date: Wed, 17 Aug 2022 21:57:29 +0200 Subject: [PATCH] fix: Added missing error message for missing subject. --- assets/php/contact_form.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/php/contact_form.php b/assets/php/contact_form.php index 6026f05..483eea8 100644 --- a/assets/php/contact_form.php +++ b/assets/php/contact_form.php @@ -58,6 +58,8 @@ function prepare_response() { if (empty($_POST['name'])) { $response['errors'][] = 'Sie haben keinen Namen eingegeben.'; } + if (empty($_POST['subject'])) { + $response['errors'][] = 'Sie haben keinen Betreff eingegeben.'; } /** * Idee zur Bot-Erkennung: