From b51a54fa4289bc4ec4a84882d25ba55ffff7114e Mon Sep 17 00:00:00 2001 From: Andreas Adelsberger Date: Fri, 26 Mar 2021 12:36:16 +0000 Subject: [PATCH] fixed garbage collect --- GarbageCollect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GarbageCollect.php b/GarbageCollect.php index 548ddfc..d77698d 100644 --- a/GarbageCollect.php +++ b/GarbageCollect.php @@ -34,7 +34,7 @@ public static function dropOldFiles($directory, $days = 30, $verbose = false) return false; } - while ($file = readdir($dir)) { + while (false !== ($file = readdir($dir))) { if ($file == '.' || $file == '..') { continue; }