diff options
Diffstat (limited to 'controllers/contact.controller.php')
-rw-r--r-- | controllers/contact.controller.php | 3 |
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'; |