From eae3ae7b143614c5282a06025546011272b586e0 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Tue, 31 Jan 2023 15:10:30 +0100 Subject: [PATCH] fix nil check in order statement parsing --- silkmvc/core/sqlite.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/silkmvc/core/sqlite.lua b/silkmvc/core/sqlite.lua index c324e69..c6fc914 100644 --- a/silkmvc/core/sqlite.lua +++ b/silkmvc/core/sqlite.lua @@ -127,6 +127,7 @@ function SQLQueryGenerator:sql_fields() end function SQLQueryGenerator:sql_order() + if not self.order then return nil end local tb = {} for k, v in ipairs(self.order) do local arr = explode(v, "$")