aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--controllers/contact.controller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/controllers/contact.controller.php b/controllers/contact.controller.php
index b1308c4..17cc88c 100644
--- a/controllers/contact.controller.php
+++ b/controllers/contact.controller.php
@@ -10,8 +10,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$submit->name = $name = $_POST['26471'] ?? null;
$submit->email = $email = $_POST['26472'] ?? null;
$submit->message = $message = $_POST['26473'] ?? null;
-
- $spam = $_POST['agree'] ?? false;
+ $submit->spam = $spam = $_POST['agree'] ?? false;
$validEmail = PHPMailer::validateAddress($submit->email, 'auto');
@@ -38,6 +37,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$name = null;
$email = null;
$message = null;
+ $spam = false;
include '../views/contact.view.php';
fastcgi_finish_request();