From 2d60841888784688e0ebc99b6798e9ceff260ddf Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 10 Feb 2014 19:42:31 -0500 Subject: [PATCH] Checked for secure.fields in the wrong place. --- 1pass.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/1pass.lua b/1pass.lua index 189672f..eb5a92c 100644 --- a/1pass.lua +++ b/1pass.lua @@ -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 @@ -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)