]> source.dussan.org Git - nextcloud-server.git/commitdiff
also expire file if timestamp = limit, happens if trashbin_retention_obligation is...
authorBjoern Schiessle <schiessle@owncloud.com>
Mon, 15 Sep 2014 11:00:04 +0000 (13:00 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Mon, 15 Sep 2014 11:00:04 +0000 (13:00 +0200)
apps/files_trashbin/lib/trashbin.php

index 69eef09d1e90006b691f1abae0e4fdeda6d7d9b2..dc90eadc8dacf7c50e9b03f6f450c52159013772 100644 (file)
@@ -799,7 +799,7 @@ class Trashbin {
                foreach ($files as $file) {
                        $timestamp = $file['mtime'];
                        $filename = $file['name'];
-                       if ($timestamp < $limit) {
+                       if ($timestamp <= $limit) {
                                $count++;
                                $size += self::delete($filename, $user, $timestamp);
                                \OC_Log::write('files_trashbin', 'remove "' . $filename . '" from trash bin because it is older than ' . $retention_obligation, \OC_log::INFO);