replace explicit value fetching with wrapper call

This commit is contained in:
Dennis Luxen 2014-08-27 18:16:00 +02:00
parent 462d4c99cc
commit 4cddf0bf5d

View File

@ -144,8 +144,8 @@ local mode_ferry = 2
local function find_access_tag(source, access_tags_hierachy) local function find_access_tag(source, access_tags_hierachy)
for i,v in ipairs(access_tags_hierachy) do for i,v in ipairs(access_tags_hierachy) do
local access_tag = source:get_value_by_key(v, "") local access_tag = source:get_value_by_key(v)
if "" ~= access_tag then if access_tag and "" ~= access_tag then
return access_tag return access_tag
end end
end end