File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function ($classname)
88 $ prefixLength = strlen ($ prefix );
99
1010 if (substr ($ classname , 0 , $ prefixLength ) == $ prefix ) {
11- $ phpmailerPath = defined ('PHPMAILER_PATH ' ) && PHPMAILER_PATH != ''
11+ $ phpmailerPath = defined ('PHPMAILER_PATH ' ) && is_dir ( PHPMAILER_PATH )
1212 ? rtrim (PHPMAILER_PATH , '/ ' ) . '/ '
1313 : 'PHPMailer6/src/ ' ;
1414 $ filename = $ phpmailerPath . substr ($ classname , $ prefixLength ) . '.php ' ;
@@ -33,7 +33,7 @@ public function __construct($exceptions)
3333 }
3434 }
3535} else {
36- if (defined ('PHPMAILER_PATH ' ) and PHPMAILER_PATH != '' ) {
36+ if (defined ('PHPMAILER_PATH ' ) && is_file ( PHPMAILER_PATH ) ) {
3737 require_once PHPMAILER_PATH ;
3838 } else {
3939 require_once __DIR__ .'/PHPMailer/PHPMailerAutoload.php ' ;
You can’t perform that action at this time.
0 commit comments