commit | 51c84f3a436ecfebe371177ba5537b9e475cc3c6 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Tue Jan 03 17:42:26 2017 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Tue Jan 03 17:42:26 2017 +0200 |
tree | 27b55160e80c980130fd48d767da0acfdfd01f59 | |
parent | 973dbfc648705b26234d5100c08625af8e1a34d6 [diff] |
Fix #4804
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php index 3f1a802..ab19d97 100644 --- a/system/database/DB_query_builder.php +++ b/system/database/DB_query_builder.php
@@ -1553,7 +1553,7 @@ is_bool($escape) OR $escape = $this->_protect_identifiers; - $keys = array_keys($this->_object_to_array(current($key))); + $keys = array_keys($this->_object_to_array(reset($key))); sort($keys); foreach ($key as $row)