Skip to content

Commit

Permalink
Merge branch '3.1/develop' into 3.2/develop. Refs #3485
Browse files Browse the repository at this point in the history
  • Loading branch information
cbandy committed May 3, 2011
2 parents d9c179c + 4acfcdb commit 395e04a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions classes/kohana/database/query/builder.php
Expand Up @@ -180,16 +180,10 @@ protected function _compile_order_by(Database $db, array $columns)
if ($direction)
{
// Make the direction uppercase
$direction = strtoupper($direction);
$direction = ' '.strtoupper($direction);
}

if ($column)
{
// Quote the column, if it has a value
$column = $db->quote_column($column);
}

$sort[] = trim($column.' '.$direction);
$sort[] = $db->quote_identifier($column).$direction;
}

return 'ORDER BY '.implode(', ', $sort);
Expand Down

0 comments on commit 395e04a

Please sign in to comment.