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

Commit eca555e

Browse files
committed
改进order方法的字符串空格处理
1 parent 912ac44 commit eca555e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ protected function parseOrder($order)
759759
}
760760
$array = array();
761761
if (is_string($order) && '[RAND]' != $order) {
762-
$order = explode(',', $order);
762+
$order = array_map('trim', explode(',', $order));
763763
}
764764

765765
if (is_array($order)) {

0 commit comments

Comments
 (0)