Quote columns in ORDER BY
This commit is contained in:
parent
9e49c5c83b
commit
e9e871a43f
1 changed files with 1 additions and 1 deletions
|
@ -593,7 +593,7 @@ class kolab_storage_cache
|
||||||
public function set_order_by($sortcols)
|
public function set_order_by($sortcols)
|
||||||
{
|
{
|
||||||
if (!empty($sortcols)) {
|
if (!empty($sortcols)) {
|
||||||
$this->order_by = join(', ', (array)$sortcols);
|
$this->order_by = '`' . join('`, `', (array)$sortcols) . '`';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->order_by = null;
|
$this->order_by = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue