From 5e8101639265d220f7b368c106f66a3f25cae386 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Tue, 26 Mar 2013 00:21:57 +0100 Subject: [PATCH] D'oh, why concatenate static strings. --- lib/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.php b/lib/db.php index f7c43c2f77f..30f41f449f6 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 { -- 2.39.5