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

Commit

Permalink
改进
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Sep 12, 2018
1 parent bcfe65d commit 728c0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ThinkPHP/Library/Think/Db/Driver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ protected function parseOrder($order)
if (false === strpos($val, '(')) {
$array[] = $this->parseKey($val);
}
} else {
} elseif (false === strpos($key, ')') && false === strpos($key, '#')) {
$sort = in_array(strtolower($val), array('asc', 'desc')) ? ' ' . $val : '';
$array[] = $this->parseKey($key, true) . $sort;
}
Expand Down

0 comments on commit 728c0fc

Please sign in to comment.