瀏覽代碼

Remove redundant code

Handled in the constructor
FusionPBX 10 月之前
父節點
當前提交
e0e652ad76
共有 1 個文件被更改,包括 0 次插入10 次删除
  1. 0 10
      resources/classes/email.php

+ 0 - 10
resources/classes/email.php

@@ -230,16 +230,6 @@ if (!class_exists('email')) {
 		 */
 		public function send() {
 
-			//set the domain_uuid if not set
-			if (!isset($this->domain_uuid) && isset($_SESSION['domain_uuid'])) {
-				$this->domain_uuid = $_SESSION['domain_uuid'];
-			}
-
-			//ensure the settings object matches the domain uuid requested in this object
-			if ($this->settings->get_domain_uuid() !== $this->domain_uuid) {
-				$this->settings = new settings(["database" => $this->database, "domain_uuid" => $this->domain_uuid]);
-			}
-
 			//set the send_method if not already set
 			if (!isset($this->method)) {
 				if ($setting->get('email_queue','enabled', true)) {