diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/data/data_marp.lua | 6 |
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 |
