Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

Commit 728c0fc

Browse files
committed
改进
1 parent bcfe65d commit 728c0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ThinkPHP/Library/Think/Db/Driver.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ protected function parseOrder($order)
764764
if (false === strpos($val, '(')) {
765765
$array[] = $this->parseKey($val);
766766
}
767-
} else {
767+
} elseif (false === strpos($key, ')') && false === strpos($key, '#')) {
768768
$sort = in_array(strtolower($val), array('asc', 'desc')) ? ' ' . $val : '';
769769
$array[] = $this->parseKey($key, true) . $sort;
770770
}

0 commit comments

Comments
 (0)