aboutsummaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-03-18 23:30:05 -0400
committerThedro Neely <thedroneely@gmail.com>2019-03-18 23:30:05 -0400
commitc3c9f2a391544afec862d0cd21ba8744a7af96ee (patch)
treef3f2fe57f13dd75081d8c0999035eacd4bd87a86 /controllers
parent7d969e741f8d7dba509fbe04a4faa74f7f01b8b9 (diff)
downloadedwinmattiacci.com-c3c9f2a391544afec862d0cd21ba8744a7af96ee.tar.gz
edwinmattiacci.com-c3c9f2a391544afec862d0cd21ba8744a7af96ee.tar.bz2
edwinmattiacci.com-c3c9f2a391544afec862d0cd21ba8744a7af96ee.zip
controllers/contact: Only check for email and message
Diffstat (limited to 'controllers')
-rw-r--r--controllers/contact.controller.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/controllers/contact.controller.php b/controllers/contact.controller.php
index cdba14e..b1308c4 100644
--- a/controllers/contact.controller.php
+++ b/controllers/contact.controller.php
@@ -15,8 +15,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$validEmail = PHPMailer::validateAddress($submit->email, 'auto');
- if ((bool) empty($submit->name) == true
- || (bool) empty($submit->email) == true
+ if ((bool) empty($submit->email) == true
|| (bool) empty($submit->message) == true
) {
include '../views/contact.view.php';