Correct the use of the settings class

This commit is contained in:
FusionPBX 2024-10-25 12:44:05 -06:00 committed by GitHub
parent ebaf1f909f
commit 6e1ef36821
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ if (!class_exists('email')) {
public $read_confirmation; public $read_confirmation;
public $error; public $error;
public $response; public $response;
private $settings;
/** /**
* called when the object is created * called when the object is created
@ -232,7 +233,7 @@ if (!class_exists('email')) {
//set the send_method if not already set //set the send_method if not already set
if (!isset($this->method)) { if (!isset($this->method)) {
if ($setting->get('email_queue','enabled', true)) { if ($this->settings->get('email_queue','enabled', true)) {
$this->method = 'queue'; $this->method = 'queue';
} }
else { else {