diff --git a/cleaner/cleaner.php b/cleaner/cleaner.php index 9edf2ea..3143b40 100644 --- a/cleaner/cleaner.php +++ b/cleaner/cleaner.php @@ -87,7 +87,12 @@ function countsize($path) { foreach ($list as $item) { - $count = countsize($_SERVER['DOCUMENT_ROOT'].$item['path']); + if (file_exists($_SERVER['DOCUMENT_ROOT'].$item['path'])) { + $count = countsize($_SERVER['DOCUMENT_ROOT'] . $item['path']); + }else{ + $count['file'] = 0; + $count['size'] = 0; + } ?>