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