* Fix bug: change 'limit' to 'LIMIT'.

This commit is contained in:
sgm0422
2017-08-03 15:09:52 +08:00
parent 4e414fe69d
commit c0a3efe859
+1 -1
View File
@@ -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);
}