From 08da03da0dde1316afd875b27729276f02c000c3 Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Fri, 14 Mar 2025 13:41:01 -0700 Subject: [PATCH] Update app_defaults.php --- app/music_on_hold/app_defaults.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/music_on_hold/app_defaults.php b/app/music_on_hold/app_defaults.php index bd9bf7f0e1..710b6342af 100644 --- a/app/music_on_hold/app_defaults.php +++ b/app/music_on_hold/app_defaults.php @@ -27,13 +27,13 @@ if ($domains_processed == 1) { //set the directory - if (!empty($setting->get('switch','conf'))) { - $xml_dir = $setting->get('switch','conf').'/autoload_configs'; + if (!empty($settings->get('switch','conf'))) { + $xml_dir = $settings->get('switch','conf').'/autoload_configs'; $xml_file = $xml_dir."/local_stream.conf"; } //rename the file - if (!empty($setting->get('switch','conf'))) { + if (!empty($settings->get('switch','conf'))) { if (file_exists($xml_dir.'/local_stream.conf.xml')) { rename($xml_dir.'/local_stream.conf', $xml_dir.'/'.$xml_file); } @@ -43,7 +43,7 @@ if ($domains_processed == 1) { } //add the music_on_hold list to the database - if (!empty($setting->get('switch','conf'))) { + if (!empty($settings->get('switch','conf'))) { $sql = "select count(music_on_hold_uuid) from v_music_on_hold; "; $num_rows = $database->select($sql, null, 'column'); unset($sql);