fix nil check in order statement parsing
All checks were successful
gitea-sync/silk/pipeline/head This commit looks good

This commit is contained in:
DanyLE 2023-01-31 15:10:30 +01:00
parent 86538b8913
commit eae3ae7b14

View File

@ -127,6 +127,7 @@ function SQLQueryGenerator:sql_fields()
end end
function SQLQueryGenerator:sql_order() function SQLQueryGenerator:sql_order()
if not self.order then return nil end
local tb = {} local tb = {}
for k, v in ipairs(self.order) do for k, v in ipairs(self.order) do
local arr = explode(v, "$") local arr = explode(v, "$")