From f714ef679886e21e72a1b77084f3497d142dd08f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 22 Dec 2022 13:04:24 -0700 Subject: [PATCH] Fix problems with the app_uuid and domain_uuid app_uuid was null, and domain_uuid getting the wrong uuid. --- resources/classes/database.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/resources/classes/database.php b/resources/classes/database.php index bd7bc19097..a40274d3c6 100644 --- a/resources/classes/database.php +++ b/resources/classes/database.php @@ -211,17 +211,17 @@ * Stores the application name making the request. * @var string App name making database request. * @see $app_uuid - * @access private + * @access public */ - private $app_name; + public $app_name; /** * Stores the application UUID making the request. * @var string * @see $app_name - * @access private + * @access public */ - private $app_uuid; + public $app_uuid; /** *

Stores the domain UUID making the request.

@@ -243,9 +243,7 @@ * Called when the object is created */ public function __construct() { -// $this->domain_uuid is still null -// if (!isset($this->domain_uuid) && isset($_SESSION['domain_uuid'])) { - if (isset($_SESSION['domain_uuid'])) { + if (!isset($this->domain_uuid) && isset($_SESSION['domain_uuid'])) { $this->domain_uuid = $_SESSION['domain_uuid']; } }