liquid_feedback_frontend
changeset 1155:9fed7af9263f
Fixed usage of global variable
author | bsw |
---|---|
date | Mon Mar 23 15:11:01 2015 +0100 (2015-03-23) |
parents | 91089defc3ea |
children | 591b78770f66 |
files | app/main/initiative/new.lua |
line diff
1.1 --- a/app/main/initiative/new.lua Sun Mar 22 22:59:17 2015 +0100 1.2 +++ b/app/main/initiative/new.lua Mon Mar 23 15:11:01 2015 +0100 1.3 @@ -155,7 +155,7 @@ 1.4 slot.put("<br />") 1.5 end 1.6 if not issue_id then 1.7 - tmp = { { id = -1, name = "" } } 1.8 + local tmp = { { id = -1, name = "" } } 1.9 for i, allowed_policy in ipairs(area.allowed_policies) do 1.10 if not allowed_policy.polling or app.session.member:has_polling_right_for_unit_id(area.unit_id) then 1.11 tmp[#tmp+1] = allowed_policy