From 1eb1413b3553d8fd71aad4dbb638ab68d18b4934 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 13 Aug 2016 14:10:57 -0600 Subject: [PATCH] Update call_flow_edit.php --- app/call_flows/call_flow_edit.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php index eed70c3bd2..d12dcde7fc 100644 --- a/app/call_flows/call_flow_edit.php +++ b/app/call_flows/call_flow_edit.php @@ -527,20 +527,21 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { } //sounds if ($load_sound) { - $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 "\n"; - foreach ($files as $key => $value) { + foreach ($sound_files as $value) { if (strlen($value) > 0) { if (substr($var, 0, 71) == "\$\${sounds_dir}/\${default_language}/\${default_dialect}/\${default_voice}/") { $var = substr($var, 71); } if ($var == $key) { $tmp_selected = true; - echo " \n"; + echo " \n"; } else { - echo " \n"; + echo " \n"; } } }