summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2018-01-14 14:22:05 -0600
committer cracyc <cracyc@users.noreply.github.com>2018-01-14 14:22:05 -0600
commit9ef46e266d33744c25ea30a90bc3228b8eb8a8d7 (patch)
tree00b647b8314c5cadb0d0eacdc11d6c1a59aac042 /plugins
parent3abe4d337cd6cd8de1b0cd7ed3c87a57ad56b29c (diff)
plugins/data: didn't mean to undo that (nw)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/data/data_marp.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/data/data_marp.lua b/plugins/data/data_marp.lua
index f74e098226b..176638843e4 100644
--- a/plugins/data/data_marp.lua
+++ b/plugins/data/data_marp.lua
@@ -111,10 +111,12 @@ local function init()
db.exec("END TRANSACTION")
end
-init()
+if db then
+ init()
+end
function dat.check(set, softlist)
- if softlist or not ver then
+ if softlist or not ver or not db then
return nil
end
info = nil