Don't try to use phpmailer class if verify_email disabled
This commit is contained in:
parent
80f1d1b5c1
commit
f5178de66b
|
@ -14,14 +14,15 @@ if (file_exists('../common/mods/style.css')) {
|
|||
<?php
|
||||
|
||||
include "config.inc.php";
|
||||
include($config_dir.'/phpmailer.inc.php');
|
||||
|
||||
// Setup mailer
|
||||
if($CONFIG['verify_email'] == true) {
|
||||
include($config_dir.'/phpmailer.inc.php');
|
||||
if(class_exists('PHPMailer')) {
|
||||
$mail = new PHPMailer();
|
||||
} else {
|
||||
$mail = new PHPMailer\PHPMailer\PHPMailer();
|
||||
}
|
||||
}
|
||||
|
||||
include "head.inc";
|
||||
$CONFIG = include($config_file);
|
||||
|
|
Loading…
Reference in New Issue