diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-03-28 21:45:41 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-03-28 21:45:41 -0400 |
commit | babacc5e790461f0a945592ffb1f1aff8023720b (patch) | |
tree | 382776a058da5270e493e34d7670125b7732504c /controllers | |
parent | 209eb412cc3324636cf236d4eea24d41d68bf98e (diff) | |
download | edwinmattiacci.com-babacc5e790461f0a945592ffb1f1aff8023720b.tar.gz edwinmattiacci.com-babacc5e790461f0a945592ffb1f1aff8023720b.tar.bz2 edwinmattiacci.com-babacc5e790461f0a945592ffb1f1aff8023720b.zip |
controllers/contact: Ensure spam is false on success
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/contact.controller.php | 4 |
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(); |