Check the length of user_record

This commit is contained in:
Mark Crane
2014-08-03 12:35:24 +00:00
parent 33f8c20d97
commit c7dff4a4a4

View File

@@ -368,7 +368,9 @@
if (string.len(call_group) > 0) then
table.insert(xml, [[ <variable name="call_group" value="]] .. call_group .. [["/>]]);
end
table.insert(xml, [[ <variable name="user_record" value="]] .. user_record .. [["/>]]);
if (string.len(user_record) > 0) then
table.insert(xml, [[ <variable name="user_record" value="]] .. user_record .. [["/>]]);
end
if (string.len(hold_music) > 0) then
table.insert(xml, [[ <variable name="hold_music" value="]] .. hold_music .. [["/>]]);
end