summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-03-15 11:24:13 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-15 12:10:21 +0100
commit418fb98c4039f4a88edc545f50d38fa21a6758be (patch)
tree196628b9a68a8d56a612a36cd3b2059a0dfde0e1
parente37e884d7a861f9321e993711c17ac5b1386b116 (diff)
downloadnextcloud-server-418fb98c4039f4a88edc545f50d38fa21a6758be.tar.gz
nextcloud-server-418fb98c4039f4a88edc545f50d38fa21a6758be.zip
remove backticks around table names
-rw-r--r--apps/files_versions/lib/versions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 5fc26fd090e..6da0e434541 100644
--- a/apps/files_versions/lib/versions.php
+++ b/apps/files_versions/lib/versions.php
@@ -53,7 +53,7 @@ class Storage {
* @return mixed versions size or false if no versions size is stored
*/
private static function getVersionsSize($user) {
- $query = \OC_DB::prepare('SELECT `size` FROM `*PREFIX*files_versions` WHERE `user`=?');
+ $query = \OC_DB::prepare('SELECT `size` FROM *PREFIX*files_versions WHERE `user`=?');
$result = $query->execute(array($user))->fetchAll();
if ($result) {
@@ -70,9 +70,9 @@ class Storage {
*/
private static function setVersionsSize($user, $size) {
if ( self::getVersionsSize($user) === false) {
- $query = \OC_DB::prepare('INSERT INTO `*PREFIX*files_versions` (`size`, `user`) VALUES (?, ?)');
+ $query = \OC_DB::prepare('INSERT INTO *PREFIX*files_versions (`size`, `user`) VALUES (?, ?)');
}else {
- $query = \OC_DB::prepare('UPDATE `*PREFIX*files_versions` SET `size`=? WHERE `user`=?');
+ $query = \OC_DB::prepare('UPDATE *PREFIX*files_versions SET `size`=? WHERE `user`=?');
}
$query->execute(array($size, $user));
}