mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Change the Database:query to make the fn optional which will make it more backwards compatible with current code. This fixes an issue with recent movement to the database class in call_forward.lua.
This commit is contained in:
@@ -27,7 +27,11 @@ function Database.new(name)
|
||||
end
|
||||
|
||||
function Database:query(sql, fn)
|
||||
return self._dbh:query(sql, fn)
|
||||
if (fn == nil) then
|
||||
return self._dbh:query(sql)
|
||||
else
|
||||
return self._dbh:query(sql, fn)
|
||||
end
|
||||
end
|
||||
|
||||
function Database:first_row(sql)
|
||||
|
||||
Reference in New Issue
Block a user