summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-09-08 23:16:27 +0200
committerAndrey Andreev <narf@devilix.net>2013-09-08 23:16:27 +0200
commitb5a021994c368c77076b50ef4b9886baa886b654 (patch)
treef52eb642a24c4f3b2ccea7f4a8081fef3cff7ad3
parentdf812738b0f310e62a6eb2a5bae2c18e9ae8b99f (diff)
parente6c4d5bcd1a65cfa2397457a6de771dc45800bfb (diff)
Merge pull request #2626 from vlakoff/develop-2
Code cleanup in db->order_by()
-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 e6a108209..b7b568b10 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -1152,7 +1152,7 @@ abstract class CI_DB_query_builder extends CI_DB_driver {
// Do we have a seed value?
$orderby = ctype_digit((string) $orderby)
- ? $orderby = sprintf($this->_random_keyword[1], $orderby)
+ ? sprintf($this->_random_keyword[1], $orderby)
: $this->_random_keyword[0];
}
elseif (empty($orderby))