From 656c3f56b98c457ff6bdc704ab0539feee3d9f06 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 31 Jul 2012 12:48:45 +0000 Subject: [PATCH] Make the recordings show up in the destination select list. --- includes/lib_switch.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/lib_switch.php b/includes/lib_switch.php index 90cdd390e7..4cec2cfca4 100644 --- a/includes/lib_switch.php +++ b/includes/lib_switch.php @@ -1140,17 +1140,17 @@ function switch_select_destination($select_type, $select_label, $select_name, $s echo "\n"; while($file = readdir($dh)) { if($file != "." && $file != ".." && $file[0] != '.') { - if(is_readable($_SESSION['switch']['recordings']['dir'] . "/" . $file)) { + if(is_dir($_SESSION['switch']['recordings']['dir'] . "/" . $file)) { //this is a directory } else { if ($ivr_menu_greet_long == $_SESSION['switch']['recordings']['dir']."/".$file) { $tmp_selected = true; if ($select_type == "dialplan") { - echo " \n"; + echo " \n"; } if ($select_type == "ivr") { - echo " \n"; + echo " \n"; } } else {