commit | a23e10fd2369cc85c4b942c5de6a8cf05a5b2b67 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Fri Oct 12 14:54:25 2012 +0300 |
committer | Andrey Andreev <narf@bofh.bg> | Fri Oct 12 14:54:25 2012 +0300 |
tree | c2343072a04cd4817c25dfc1358ad418dc39d662 | |
parent | fc043b3d00a94c473a03cd6927e83e3518e391c0 [diff] [blame] |
Really fix order_by()
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php index 936d114..4f89d78 100644 --- a/system/database/DB_query_builder.php +++ b/system/database/DB_query_builder.php
@@ -2154,7 +2154,7 @@ $this->qb_orderby[$i] = $this->qb_orderby[$i]['field'].$this->qb_orderby[$i]['direction']; } - $sql .= implode(', ', $this->qb_orderby); + return "\nORDER BY ".implode(', ', $this->qb_orderby); } return '';