diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-03-26 00:24:08 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-03-26 00:24:08 +0100 |
commit | 9d618005b6553fa4365865d9cfa430ccb7ad9ab6 (patch) | |
tree | e457fbdd15aaf1bc9c48bb68fc7335db686e2db1 | |
parent | 5e8101639265d220f7b368c106f66a3f25cae386 (diff) | |
download | nextcloud-server-9d618005b6553fa4365865d9cfa430ccb7ad9ab6.tar.gz nextcloud-server-9d618005b6553fa4365865d9cfa430ccb7ad9ab6.zip |
Missing backticks. Thx @Raydiation :)
-rw-r--r-- | lib/db.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 '; |