diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-02-27 01:53:44 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-02-27 01:53:44 -0500 |
commit | d223cb7d573a105095abd711657bf3d728844ce5 (patch) | |
tree | d0eae4406b0855d16b0d23092bde048068d0e79b /app/controllers | |
parent | 77a705b55f08e6ad5f8acd83320520f7e269e80e (diff) | |
download | thedroneely.com-d223cb7d573a105095abd711657bf3d728844ce5.tar.gz thedroneely.com-d223cb7d573a105095abd711657bf3d728844ce5.tar.bz2 thedroneely.com-d223cb7d573a105095abd711657bf3d728844ce5.zip |
app/controllers/mail: Set parameters if undefined
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/mail.controller.php | 6 |
1 files changed, 3 insertions, 3 deletions
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'); |