1pass.lua
changeset 40 3c2fddfada9f
parent 38 115b6a0bd0af
child 41 5155ff0e6d3d
--- a/1pass.lua	Tue Jul 08 23:47:17 2014 -0400
+++ b/1pass.lua	Tue Jul 08 23:49:15 2014 -0400
@@ -246,7 +246,7 @@
 
 local function build_secret_menuitems(info, menu)
     local metadata = load_json(basedir .. "/" .. info.uuid .. ".1password")
-    if metadata == nil then
+    if (metadata == nil) or (next(metadata) == nil) then  -- the "next" trick tests if table is empty.
         return
     end