diff --git a/app/conference_centers/conference_center_edit.php b/app/conference_centers/conference_center_edit.php
index fc2c7e3f76..ce66e44c2e 100644
--- a/app/conference_centers/conference_center_edit.php
+++ b/app/conference_centers/conference_center_edit.php
@@ -69,12 +69,13 @@
//process user data
if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
- $msg = '';
- if ($action == "update") {
- $conference_center_uuid = check_str($_POST["conference_center_uuid"]);
- }
+ //get the id
+ if ($action == "update") {
+ $conference_center_uuid = check_str($_POST["conference_center_uuid"]);
+ }
//check for all required data
+ $msg = '';
//if (strlen($dialplan_uuid) == 0) { $msg .= "Please provide: Dialplan UUID
\n"; }
if (strlen($conference_center_name) == 0) { $msg .= "Please provide: Name
\n"; }
if (strlen($conference_center_extension) == 0) { $msg .= "Please provide: Extension
\n"; }
@@ -388,16 +389,17 @@
echo "\n";
}
//sounds
- $files = recur_sounds_dir($_SESSION['switch']['sounds']['dir']);
- if (count($files) > 0) {
+ $file = new file;
+ $sound_files = $file->sounds();
+ if (is_array($sound_files)) {
echo "