Missing backticks. Thx @Raydiation :)

remotes/origin/stable6
Thomas Tanghus 2013-03-26 00:24:08 +07:00
parent 5e81016392
commit 9d618005b6
1 changed files with 1 additions and 1 deletions

@ -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 ';