aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch_recordings.tmp
diff options
context:
space:
mode:
Diffstat (limited to 'config/freeswitch/freeswitch_recordings.tmp')
-rw-r--r--config/freeswitch/freeswitch_recordings.tmp10
1 files changed, 9 insertions, 1 deletions
diff --git a/config/freeswitch/freeswitch_recordings.tmp b/config/freeswitch/freeswitch_recordings.tmp
index 15f3be5e..7d504d15 100644
--- a/config/freeswitch/freeswitch_recordings.tmp
+++ b/config/freeswitch/freeswitch_recordings.tmp
@@ -320,6 +320,7 @@ if ($config_change == 1) {
$i = 0;
if (count($a_recordings) > 0) {
foreach ($a_recordings as $recordingent) {
+ if (strlen($recordingent['filename']) > 0) {
?>
<tr>
<td class="listlr" ondblclick="document.location='freeswitch_recordings_edit.php?id=<?=$i;?>'">
@@ -345,7 +346,14 @@ if ($config_change == 1) {
</td>
</tr>
<?php
- $i++;
+ }
+ else {
+ //clean up blank entries
+ unset($a_recordings[$i]);
+ write_config();
+ }
+
+ $i++;
} //end for each
} //end count
?>