liquid_feedback_frontend
changeset 1187:e17e35dc8aa6
Fixed usage of global variable
author | bsw |
---|---|
date | Sat Mar 28 01:34:30 2015 +0100 (2015-03-28) |
parents | f01239f154a8 |
children | 70e27f4b6a5d f981928d1984 |
files | app/main/admin/_action/member_update.lua |
line diff
1.1 --- a/app/main/admin/_action/member_update.lua Thu Mar 26 21:31:10 2015 +0100 1.2 +++ b/app/main/admin/_action/member_update.lua Sat Mar 28 01:34:30 2015 +0100 1.3 @@ -53,7 +53,7 @@ 1.4 for i, unit in ipairs(units) do 1.5 local value = param.get("unit_" .. unit.id, atom.boolean) 1.6 if value and not unit.privilege_exists then 1.7 - privilege = Privilege:new() 1.8 + local privilege = Privilege:new() 1.9 privilege.unit_id = unit.id 1.10 privilege.member_id = member.id 1.11 privilege.voting_right = true