aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch_hunt_group.tmp
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-06-10 04:53:10 -0600
committermcrane <mctch@yahoo.com>2009-06-10 04:57:24 -0600
commit2805239ac2dca632d02d32445a1c2b48e288f39a (patch)
tree85c2770112a4a52c123bafa0d35f21a007d11f38 /config/freeswitch/freeswitch_hunt_group.tmp
parent9897f8deb603c33a57014230825fabf509e4b229 (diff)
downloadpfsense-packages-2805239ac2dca632d02d32445a1c2b48e288f39a.tar.gz
pfsense-packages-2805239ac2dca632d02d32445a1c2b48e288f39a.tar.bz2
pfsense-packages-2805239ac2dca632d02d32445a1c2b48e288f39a.zip
FreeSWITCH package add new feature beta feature fax.
Diffstat (limited to 'config/freeswitch/freeswitch_hunt_group.tmp')
-rw-r--r--config/freeswitch/freeswitch_hunt_group.tmp6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/freeswitch/freeswitch_hunt_group.tmp b/config/freeswitch/freeswitch_hunt_group.tmp
index 10a20eb8..5448396a 100644
--- a/config/freeswitch/freeswitch_hunt_group.tmp
+++ b/config/freeswitch/freeswitch_hunt_group.tmp
@@ -38,9 +38,11 @@ $a_hunt_group = &$config['installedpackages']['freeswitchhuntgroup']['config'];
if ($_GET['act'] == "del") {
- if ($_GET['type'] == 'hunt_group') {
+ if ($_GET['type'] == 'huntgroup') {
if ($a_hunt_group[$_GET['id']]) {
- unlink("/usr/local/freeswitch/scripts/hunt_group_".$_GET['huntgroupid'].".js");
+ if file_exists("/usr/local/freeswitch/scripts/huntgroup_".$_GET['huntgroupid'].".js")) {
+ unlink("/usr/local/freeswitch/scripts/huntgroup_".$_GET['huntgroupid'].".js");
+ }
unset($a_hunt_group[$_GET['id']]);
write_config();
sync_package_freeswitch_hunt_group();