diff --git a/app/ivr_menu/ivr_menu_edit.php b/app/ivr_menu/ivr_menu_edit.php
index 48fb27c48c..4a6d14048c 100644
--- a/app/ivr_menu/ivr_menu_edit.php
+++ b/app/ivr_menu/ivr_menu_edit.php
@@ -319,7 +319,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//get the recordings
$sql = "select * from v_recordings ";
- $sql .= "where domain_uuid = '".$domain_uuid."' ";
+ $sql .= "where domain_uuid = '".$_SESSION["domain_uuid"]."' ";
$sql .= "order by recording_name asc ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
@@ -434,18 +434,17 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
if($dh = opendir($_SESSION['switch']['recordings']['dir']."/")) {
$tmp_selected = false;
echo "\n";
@@ -522,18 +521,17 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
if($dh = opendir($_SESSION['switch']['recordings']['dir']."/")) {
$tmp_selected = false;
echo "\n";
@@ -1087,7 +1085,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo "";
-
//include the footer
require_once "resources/footer.php";
-?>
+
+?>
\ No newline at end of file