From c0a3efe8595706ea80bc0c1d24d732004b0c2898 Mon Sep 17 00:00:00 2001 From: sgm0422 <976204163@qq.com> Date: Thu, 3 Aug 2017 15:09:52 +0800 Subject: [PATCH] * Fix bug: change 'limit' to 'LIMIT'. --- module/common/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index 48c6d2d8ca..2448165ad8 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -986,7 +986,7 @@ class commonModel extends model $orderBy = isset($orderBy[1]) ? $orderBy[1] : ''; if($orderBy) { - $orderBy = explode('limit', $orderBy); + $orderBy = explode('LIMIT', $orderBy); $orderBy = $orderBy[0]; if($onlyCondition) $orderBy = str_replace('t1.', '', $orderBy); }