summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php
index cfa3b6cb979..f7c43c2f77f 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -640,7 +640,7 @@ class OC_DB {
// otherwise all fieldnames used must have a unique key.
$query = 'SELECT * FROM "' . $table . '" WHERE ';
foreach($input as $key => $value) {
- $query .= $key . ' = ? AND ';
+ $query .= '"' .$key . '"' . ' = ? AND ';
}
$query = substr($query, 0, strlen($query) - 5);
try {