Fix warnings
This commit is contained in:
parent
cf2dd28a21
commit
de718837e4
@ -298,7 +298,7 @@ class CMailFile
|
|||||||
if (!empty($this->sendcontext)) {
|
if (!empty($this->sendcontext)) {
|
||||||
$smtpContextKey = strtoupper($this->sendcontext);
|
$smtpContextKey = strtoupper($this->sendcontext);
|
||||||
$keyForSMTPSendMode = 'MAIN_MAIL_SENDMODE_'.$smtpContextKey;
|
$keyForSMTPSendMode = 'MAIN_MAIL_SENDMODE_'.$smtpContextKey;
|
||||||
$smtpContextSendMode = $conf->global->{$keyForSMTPSendMode};
|
$smtpContextSendMode = empty($conf->global->{$keyForSMTPSendMode}) ? '' : $conf->global->{$keyForSMTPSendMode};
|
||||||
if (!empty($smtpContextSendMode) && $smtpContextSendMode != 'default') {
|
if (!empty($smtpContextSendMode) && $smtpContextSendMode != 'default') {
|
||||||
$keyforsslseflsigned = 'MAIN_MAIL_EMAIL_SMTP_ALLOW_SELF_SIGNED_'.$smtpContextKey;
|
$keyforsslseflsigned = 'MAIN_MAIL_EMAIL_SMTP_ALLOW_SELF_SIGNED_'.$smtpContextKey;
|
||||||
}
|
}
|
||||||
@ -657,7 +657,7 @@ class CMailFile
|
|||||||
if (!empty($this->sendcontext)) {
|
if (!empty($this->sendcontext)) {
|
||||||
$smtpContextKey = strtoupper($this->sendcontext);
|
$smtpContextKey = strtoupper($this->sendcontext);
|
||||||
$keyForSMTPSendMode = 'MAIN_MAIL_SENDMODE_'.$smtpContextKey;
|
$keyForSMTPSendMode = 'MAIN_MAIL_SENDMODE_'.$smtpContextKey;
|
||||||
$smtpContextSendMode = $conf->global->{$keyForSMTPSendMode};
|
$smtpContextSendMode = empty($conf->global->{$keyForSMTPSendMode}) ? '' : $conf->global->{$keyForSMTPSendMode};
|
||||||
if (!empty($smtpContextSendMode) && $smtpContextSendMode != 'default') {
|
if (!empty($smtpContextSendMode) && $smtpContextSendMode != 'default') {
|
||||||
$keyforsmtpserver = 'MAIN_MAIL_SMTP_SERVER_'.$smtpContextKey;
|
$keyforsmtpserver = 'MAIN_MAIL_SMTP_SERVER_'.$smtpContextKey;
|
||||||
$keyforsmtpport = 'MAIN_MAIL_SMTP_PORT_'.$smtpContextKey;
|
$keyforsmtpport = 'MAIN_MAIL_SMTP_PORT_'.$smtpContextKey;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user