]> source.dussan.org Git - nextcloud-server.git/commitdiff
Missing backticks. Thx @Raydiation :)
authorThomas Tanghus <thomas@tanghus.net>
Mon, 25 Mar 2013 23:24:08 +0000 (00:24 +0100)
committerThomas Tanghus <thomas@tanghus.net>
Mon, 25 Mar 2013 23:24:08 +0000 (00:24 +0100)
lib/db.php

index 30f41f449f6d30414fc9db94c7537258b9d54986..1a4b0a86c61b343c02459762dc5c3a553c7afabc 100644 (file)
@@ -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 ';