Skip to content

Commit

Permalink
- remove process left, check it in modlues.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujinyong committed Jul 10, 2013
1 parent b8cb9a4 commit 737d05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dao/dao.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ public function orderBy($order)
if($this->inCondition and !$this->conditionIsTrue) return $this;

$order = str_replace(array('|', '', '_'), ' ', $order);
$order = str_replace('left', '`left`', $order); // process the left to `left`.

$this->sql .= ' ' . DAO::ORDERBY . " $order";
return $this;
}
Expand Down

0 comments on commit 737d05b

Please sign in to comment.