From d223cb7d573a105095abd711657bf3d728844ce5 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Wed, 27 Feb 2019 01:53:44 -0500 Subject: app/controllers/mail: Set parameters if undefined --- app/controllers/mail.controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/mail.controller.php b/app/controllers/mail.controller.php index 93260c8..ce593d6 100644 --- a/app/controllers/mail.controller.php +++ b/app/controllers/mail.controller.php @@ -4,9 +4,9 @@ use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; $form = new Form( - $name = $_POST['26471'], - $email = $_POST['26472'], - $message = $_POST['26478'] + $name = $_POST['26471'] ?? null, + $email = $_POST['26472'] ?? null, + $message = $_POST['26478'] ?? null ); $validEmail = PHPMailer::validateAddress($email, 'auto'); -- cgit v1.2.3