summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-09-17 17:50:26 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-09-17 17:50:26 (GMT)
commite9e871a43f4a1ff5095a438e2ccd5d1016c6a37b (patch)
tree52307039b9d21aae9d2858ad787def3a105565c1
parent9e49c5c83bca4a2b18a490c54b6568bbaa9a4e8d (diff)
downloadroundcubemail-plugins-kolab-e9e871a43f4a1ff5095a438e2ccd5d1016c6a37b.tar.gz
Quote columns in ORDER BY
-rw-r--r--plugins/libkolab/lib/kolab_storage_cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/libkolab/lib/kolab_storage_cache.php b/plugins/libkolab/lib/kolab_storage_cache.php
index 25b45ce..913005b 100644
--- a/plugins/libkolab/lib/kolab_storage_cache.php
+++ b/plugins/libkolab/lib/kolab_storage_cache.php
@@ -593,7 +593,7 @@ class kolab_storage_cache
public function set_order_by($sortcols)
{
if (!empty($sortcols)) {
- $this->order_by = join(', ', (array)$sortcols);
+ $this->order_by = '`' . join('`, `', (array)$sortcols) . '`';
}
else {
$this->order_by = null;