summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-03-22 12:47:43 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-25 12:29:13 +0100
commit5924d1d95c09fef92a71c94c813dfce2372bbb91 (patch)
treea07c3054253cdd36e0ece29eb368c60fb9d02a25 /apps/files_versions
parent0e55b611693ffa2171844a476573ebfc211b35e8 (diff)
downloadnextcloud-server-5924d1d95c09fef92a71c94c813dfce2372bbb91.tar.gz
nextcloud-server-5924d1d95c09fef92a71c94c813dfce2372bbb91.zip
add backticks around table names
Diffstat (limited to 'apps/files_versions')
-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 6da0e434541..5fc26fd090e 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));
}