summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-06-05 10:44:32 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-05 10:44:32 +0200
commit6fcd135d0e871a918b2842647385b527cb823bb2 (patch)
tree71f3e06d2094e84154d6662166ca418781fac63c /apps/files_trashbin/lib
parent09cc7c2d4436f9e85dc70a7cf22a105b63cb53c1 (diff)
downloadnextcloud-server-6fcd135d0e871a918b2842647385b527cb823bb2.tar.gz
nextcloud-server-6fcd135d0e871a918b2842647385b527cb823bb2.zip
table files_trashsizes was still used in some locations -> removed
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/trashbin.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index a8e66b06bbd..1838c48d95d 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -655,17 +655,12 @@ class Trashbin {
/**
* deletes used space for trash bin in db if user was deleted
*
- * @param type $uid id of deleted user
+ * @param string $uid id of deleted user
* @return bool result of db delete operation
*/
public static function deleteUser($uid) {
$query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_trash` WHERE `user`=?');
- $result = $query->execute(array($uid));
- if ($result) {
- $query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_trashsize` WHERE `user`=?');
- return $query->execute(array($uid));
- }
- return false;
+ return $query->execute(array($uid));
}
/**