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 {