diff options
author | Thedro Neely <thedroneely@gmail.com> | 2018-11-09 22:58:36 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2018-11-09 22:58:36 -0500 |
commit | 6104ed5310776c04057b69700c232fbc8a1714c5 (patch) | |
tree | 456d0172b1aa9f06feb679fc5278d5a097f58a39 /app/model | |
parent | 643f4d8b30d5b134ed72e36b8c4637985b31f077 (diff) | |
download | thedroneely.com-6104ed5310776c04057b69700c232fbc8a1714c5.tar.gz thedroneely.com-6104ed5310776c04057b69700c232fbc8a1714c5.tar.bz2 thedroneely.com-6104ed5310776c04057b69700c232fbc8a1714c5.zip |
app/model/Form: Log errors instead of flashing user for now.
Diffstat (limited to 'app/model')
-rw-r--r-- | app/model/Form.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/model/Form.php b/app/model/Form.php index 4e6d3f3..18ac634 100644 --- a/app/model/Form.php +++ b/app/model/Form.php @@ -1,6 +1,5 @@ <?php -// PHP mailer namespace use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; @@ -78,8 +77,8 @@ class Form //Send Mail $mail->send(); - } catch (Exception $e) { - include '../app/views/mail-error.view.php'; + } catch (Exception $exception) { + log_exception($exception); } } } |