Skip to content

Commit

Permalink
Checked for secure.fields in the wrong place.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 11, 2014
1 parent 5d55af6 commit 2d60841
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions 1pass.lua
Expand Up @@ -128,6 +128,11 @@ local function build_secret_menuitem_webform(menu, info, secure)
local password = nil
local email = nil

if secure.fields == nil then
print("no secure fields, don't know how to handle this item")
return
end

for i,v in ipairs(secure.fields) do
--print(info.name .. ": " .. v.type .. ", " .. v.value)
local ignored = false
Expand Down Expand Up @@ -241,10 +246,6 @@ local function build_secret_menuitems(info, menu)
return
end
--dumptable("secure " .. info.name, secure)
if secure.fields == nil then
print("no secure fields, don't know how to handle this item")
return
end

local menuitem = appendGuiMenuItem(menu, info.name)

Expand Down

0 comments on commit 2d60841

Please sign in to comment.