mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 02:46:30 +00:00
Use the now() for PostgreSQL
This prevents and error for SQLite
This commit is contained in:
@@ -254,7 +254,7 @@
|
||||
if (database["type"] == "mysql") then
|
||||
params.now = os.time();
|
||||
sql = sql .. "AND expires > :now ";
|
||||
else
|
||||
elseif (database["type"] == "pgsql") then
|
||||
sql = sql .. "AND to_timestamp(expires) > NOW()";
|
||||
end
|
||||
if (debug["sql"]) then
|
||||
|
||||
Reference in New Issue
Block a user