summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-02-09 11:07:47 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-02-09 11:07:47 +0100
commitb24e3f1d32efc3471fd2d5c54a067867635b81c1 (patch)
treeb81a0669eca8569702dc264950a5ebff53c76948
parent808de17aebeedcc0d9b27d3c0152e80226218e39 (diff)
downloadnextcloud-server-b24e3f1d32efc3471fd2d5c54a067867635b81c1.tar.gz
nextcloud-server-b24e3f1d32efc3471fd2d5c54a067867635b81c1.zip
comment added
-rw-r--r--apps/files_trashbin/lib/trash.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php
index 091fe684c17..d88dc1ac252 100644
--- a/apps/files_trashbin/lib/trash.php
+++ b/apps/files_trashbin/lib/trash.php
@@ -291,7 +291,7 @@ class Trashbin {
$query->execute(array($user,$limit));
$availableSpace = $availableSpace + $size;
-
+ // if size limit for trash bin reached, delete oldest files in trash bin
if ($availableSpace < 0) {
$query = \OC_DB::prepare('SELECT location,type,id,timestamp FROM *PREFIX*files_trash WHERE user=? ORDER BY timestamp ASC');
$result = $query->execute(array($user))->fetchAll();
@@ -306,7 +306,6 @@ class Trashbin {
}
-
return $size;
}