浏览代码

Correct the use of the settings class

FusionPBX 10 月之前
父节点
当前提交
12efa36847
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      resources/classes/email.php

+ 2 - 1
resources/classes/email.php

@@ -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 {