From 6bd159a71758364f5e886ebe198e7a5d43949d14 Mon Sep 17 00:00:00 2001 From: frytimo Date: Fri, 29 Mar 2024 01:13:01 -0300 Subject: [PATCH] settings was being set in constructor but property was missing (#6931) --- app/destinations/resources/classes/destinations.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index fe3f89cda3..e3e0faeff9 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -49,6 +49,7 @@ if (!class_exists('destinations')) { private $list_page; private $table; private $uuid_prefix; + private $settings; /** * Called when the object is created @@ -60,7 +61,7 @@ if (!class_exists('destinations')) { } //get the email queue settings - $this->setting = new settings(); + $this->settings = new settings(); //assign private variables $this->app_name = 'destinations'; @@ -1121,8 +1122,8 @@ if (!class_exists('destinations')) { public function destination_summary() { //set the time zone - if (!empty($this->setting->get('domain', 'time_zone'))) { - $time_zone = $this->setting->get('domain', 'time_zone'); + if (!empty($this->settings->get('domain', 'time_zone'))) { + $time_zone = $this->settings->get('domain', 'time_zone'); } else { $time_zone = date_default_timezone_get();