From 48dab137b89770e2802c4b281225cd2bbeefc188 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 31 Jan 2026 14:26:43 -0700 Subject: [PATCH] Fix the reference to the database object --- app/xml_cdr/resources/classes/xml_cdr_service.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr_service.php b/app/xml_cdr/resources/classes/xml_cdr_service.php index 78fce1c8b9..01da681432 100644 --- a/app/xml_cdr/resources/classes/xml_cdr_service.php +++ b/app/xml_cdr/resources/classes/xml_cdr_service.php @@ -42,7 +42,7 @@ class xml_cdr_service extends service { $this->database = new database(['config' => parent::$config]); // get the settings using global defaults - $this->settings = new settings(['database' => $database]); + $this->settings = new settings(['database' => $this->database]); // get the hostname $this->hostname = gethostname(); @@ -98,7 +98,7 @@ class xml_cdr_service extends service { $this->database->connect(); //reload settings after connection to the database - $this->settings = new settings(['database' => $database]); + $this->settings = new settings(['database' => $this->database]); //sleep for a moment sleep(3);