set dbh if there isn't a global dbh set (#6489)
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
--define the trim function
|
--define the trim function
|
||||||
require "resources.functions.trim";
|
require "resources.functions.trim";
|
||||||
|
local Database = require "resources.functions.database";
|
||||||
|
local dbh = dbh or Database.new("system");
|
||||||
|
|
||||||
--include json library
|
--include json library
|
||||||
local json
|
local json
|
||||||
|
|||||||
Reference in New Issue
Block a user