Skip to content

Commit

Permalink
改进复合查询
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jun 7, 2013
1 parent 8a13000 commit dad6acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ThinkPHP/Lib/Core/Db.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ protected function parseThinkWhere($key,$val) {
break;
case '_complex':
// 复合查询条件
$whereStr = substr($this->parseWhere($val),6);
$whereStr = is_string($val)? $val : substr($this->parseWhere($val),6);
break;
case '_query':
// 字符串模式查询条件
Expand Down

0 comments on commit dad6acb

Please sign in to comment.