mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix trying to access protected property of SMS class
This commit is contained in:
parent
29bf72c998
commit
0be90c1817
1 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ class Advanced_MailerController extends Advanced_Mailer
|
|||
{
|
||||
$config = $this->getConfig();
|
||||
|
||||
if (toBool($config->log_sent_mail ?? 'N') || (toBool($config->log_errors ?? 'N') && count($mail->errors)))
|
||||
if (toBool($config->log_sent_mail ?? 'N') || (toBool($config->log_errors ?? 'N') && count($mail->getErrors())))
|
||||
{
|
||||
$obj = new \stdClass();
|
||||
$obj->mail_from = '';
|
||||
|
|
@ -182,7 +182,7 @@ class Advanced_MailerController extends Advanced_Mailer
|
|||
{
|
||||
$config = $this->getConfig();
|
||||
|
||||
if (toBool($config->log_sent_sms ?? 'N') || (toBool($config->log_sms_errors ?? 'N') && count($sms->errors)))
|
||||
if (toBool($config->log_sent_sms ?? 'N') || (toBool($config->log_sms_errors ?? 'N') && count($sms->getErrors())))
|
||||
{
|
||||
$obj = new \stdClass();
|
||||
$obj->sms_from = $sms->getFrom();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue