Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-04-12 20:42:18 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-04-12 20:43:51 +0300
commit8b5a123a70f6d013398724b03fb7ac8ab977bd29 (patch)
tree447a647e7b5fcdf6e4b7ec5386e7cc2c52157bd8
parent20ce0b860da3593f78040bc73102731e49bc5ba4 (diff)
Fix expiration when storage is unlimited and auto expiration is on
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--lib/Trash/TrashBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Trash/TrashBackend.php b/lib/Trash/TrashBackend.php
index bb0cc33b..43547a58 100644
--- a/lib/Trash/TrashBackend.php
+++ b/lib/Trash/TrashBackend.php
@@ -380,7 +380,7 @@ class TrashBackend implements ITrashBackend {
$sizeInTrash += $node->getSize();
}
foreach ($trashItems as $groupTrashItem) {
- if ($expiration->isExpired($groupTrashItem['deleted_time'], $folder['quota'] < ($folder['size'] + $sizeInTrash))) {
+ if ($expiration->isExpired($groupTrashItem['deleted_time'], $folder['quota'] > 0 && $folder['quota'] < ($folder['size'] + $sizeInTrash))) {
try {
$nodeName = $groupTrashItem['name'] . '.d' . $groupTrashItem['deleted_time'];
$node = $nodes[$nodeName];