Update destinations.php

This commit is contained in:
FusionPBX 2024-04-02 09:43:16 -06:00 committed by GitHub
parent 2e7ebaf1c4
commit 92f5f4abe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -54,14 +54,16 @@ if (!class_exists('destinations')) {
/**
* Called when the object is created
*/
public function __construct() {
public function __construct($settings = null) {
//set the domain details
if (is_null($this->domain_uuid)) {
$this->domain_uuid = $_SESSION['domain_uuid'];
}
//get the email queue settings
$this->settings = new settings();
if (!isset($settings)) {
$this->settings = new settings();
}
//assign private variables
$this->app_name = 'destinations';