Remove redundant code

Handled in the constructor
This commit is contained in:
FusionPBX
2024-10-23 10:54:52 -06:00
committed by GitHub
parent 56f3135f21
commit e49e2f01ce

View File

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