summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/templates/polycom-template.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua
index cf456d1..81adc8f 100644
--- a/config/templates/polycom-template.lua
+++ b/config/templates/polycom-template.lua
@@ -56,6 +56,8 @@ device.set="1"
<%
local function xml_attr (t, v)
if v ~= nil then
+ -- Check for -0, which is invalid for Polycom but fine for Lua
+ if (v == 0) then v = "0" end
-- v could be a string, boolean, or a number
io.write(table.concat(t, '.') .. '="' .. tostring(v) .. '"\n')
end