summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-10-12 13:54:25 +0200
committerAndrey Andreev <narf@bofh.bg>2012-10-12 13:54:25 +0200
commita23e10fd2369cc85c4b942c5de6a8cf05a5b2b67 (patch)
treec2343072a04cd4817c25dfc1358ad418dc39d662 /system
parentfc043b3d00a94c473a03cd6927e83e3518e391c0 (diff)
Really fix order_by()
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_query_builder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php
index 936d114bd..4f89d78d0 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -2154,7 +2154,7 @@ abstract class CI_DB_query_builder extends CI_DB_driver {
$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 '';