Merge branch 'master' of github.com:easysoft/zentaopms
This commit is contained in:
@@ -551,8 +551,8 @@ class dao
|
||||
|
||||
/* Remove the part after order and limit. */
|
||||
$subLength = strlen($sql);
|
||||
$orderPOS = strripos($sql, 'order ');
|
||||
$limitPOS = strripos($sql , 'limit');
|
||||
$orderPOS = strrpos($sql, 'order ');
|
||||
$limitPOS = strrpos($sql , 'limit');
|
||||
if($limitPOS) $subLength = $limitPOS;
|
||||
if($orderPOS) $subLength = $orderPOS;
|
||||
$sql = substr($sql, 0, $subLength);
|
||||
|
||||
Reference in New Issue
Block a user