Commit 3c5be7fa authored by Rolf Forst's avatar Rolf Forst
Browse files

Update File.php

parent 2feae9d4
......@@ -322,8 +322,6 @@ final class File
// Handle arguments.
if (empty($folder) || !file_exists($folder)) {
return true; // No such file/folder exists.
} elseif (is_file($folder) || is_link($folder)) {
return @unlink($folder); // Delete file/link.
}
// Get all children.
......@@ -341,7 +339,7 @@ final class File
return false; // Abort due to the failure.
}
$i++;
if($maxFiles && $i > $maxFiles) {
if ($maxFiles && $i > $maxFiles) {
return false;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment