Skip to content

Commit cc7731d

Browse files
committed
order by null handling issue 23
1 parent 179abcb commit cc7731d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

system/database/DB_query_builder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,9 @@ public function or_having($key, $value = NULL, $escape = NULL)
12121212
*/
12131213
public function order_by($orderby, $direction = '', $escape = NULL)
12141214
{
1215+
$orderby = (string) $orderby;
1216+
$direction = (string) $direction;
1217+
12151218
$direction = strtoupper(trim($direction));
12161219

12171220
if ($direction === 'RANDOM')

0 commit comments

Comments
 (0)