aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-02-27 01:53:44 -0500
committerThedro Neely <thedroneely@gmail.com>2019-02-27 01:53:44 -0500
commitd223cb7d573a105095abd711657bf3d728844ce5 (patch)
treed0eae4406b0855d16b0d23092bde048068d0e79b /app/controllers
parent77a705b55f08e6ad5f8acd83320520f7e269e80e (diff)
downloadthedroneely.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.php6
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');