From 7431e462e1e92fb757d16d373ed91a5fe1b0659b Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 18:57:06 +0000 Subject: Fix bug in polycom template where gmtOffset was -0 --- config/templates/polycom-template.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3