From 9d618005b6553fa4365865d9cfa430ccb7ad9ab6 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Tue, 26 Mar 2013 00:24:08 +0100 Subject: [PATCH] Missing backticks. Thx @Raydiation :) --- lib/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.php b/lib/db.php index 30f41f449f6..1a4b0a86c61 100644 --- a/lib/db.php +++ b/lib/db.php @@ -666,7 +666,7 @@ class OC_DB { $query = 'INSERT INTO `' .$table . '` (`' . implode('`,`', array_keys($input)) . '`) SELECT ' . str_repeat('?,', count($input)-1).'? ' // Is there a prettier alternative? - . 'FROM ' . $table . ' WHERE '; + . 'FROM `' . $table . '` WHERE '; foreach($input as $key => $value) { $query .= '`' . $key . '` = ? AND '; -- 2.39.5