aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch_gateways.tmp
diff options
context:
space:
mode:
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) {