From bc46191440ecdaf68c85887168edf4cd440a51a3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 28 Jun 2016 12:24:31 -0600 Subject: [PATCH] Update local_stream.conf.lua Check if row.music_on_hold_timer_name is empty. --- .../resources/scripts/configuration/local_stream.conf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/configuration/local_stream.conf.lua b/resources/install/scripts/app/xml_handler/resources/scripts/configuration/local_stream.conf.lua index e2a84ce09d..a1ebada8bf 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/configuration/local_stream.conf.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/configuration/local_stream.conf.lua @@ -41,7 +41,7 @@ end --set the default timer name to soft - if (row.music_on_hold_timer_name == nil) then + if (row.music_on_hold_timer_name == nil or row.music_on_hold_timer_name == '') then timer_name = "soft"; else timer_name = row.music_on_hold_timer_name;