aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch_gateways.tmp
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-04-30 15:43:00 -0600
committermcrane <mctch@yahoo.com>2009-04-30 15:43:00 -0600
commit7d9f813cf6164487e7668efc6e3db89aabb9e771 (patch)
tree346e549b96c15ebcc8a0f19d428d0c64861d3512 /config/freeswitch/freeswitch_gateways.tmp
parentab4946e7d593997df7baea4cd5ccc1ba2318d23a (diff)
downloadpfsense-packages-7d9f813cf6164487e7668efc6e3db89aabb9e771.tar.gz
pfsense-packages-7d9f813cf6164487e7668efc6e3db89aabb9e771.tar.bz2
pfsense-packages-7d9f813cf6164487e7668efc6e3db89aabb9e771.zip
FreeSWITCH fix path to delete enum because its now in the directly in the dialplan. More changes to usort so no errors occur when the array is empty.
Diffstat (limited to 'config/freeswitch/freeswitch_gateways.tmp')
-rw-r--r--config/freeswitch/freeswitch_gateways.tmp2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/freeswitch/freeswitch_gateways.tmp b/config/freeswitch/freeswitch_gateways.tmp
index 0a93212c..f2036415 100644
--- a/config/freeswitch/freeswitch_gateways.tmp
+++ b/config/freeswitch/freeswitch_gateways.tmp
@@ -140,7 +140,7 @@ if ($config_change == 1) {
function cmp_string($a, $b) {
return strcmp($a["gateway"], $b["gateway"]);
}
- usort($a_gateways, "cmp_string");
+ if (count($a_gateways) > 0) { usort($a_gateways, "cmp_string"); }
$i = 0;
if (count($a_gateways) > 0) {