From babacc5e790461f0a945592ffb1f1aff8023720b Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Thu, 28 Mar 2019 21:45:41 -0400 Subject: controllers/contact: Ensure spam is false on success --- controllers/contact.controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'controllers') 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(); -- cgit v1.2.3