Make the recursive delete more robust

This commit is contained in:
Robin Appelman 2014-05-23 13:31:45 +02:00
parent 71e1d919de
commit be8326668a
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ class OC_Helper {
if (is_dir($dir)) {
$files = scandir($dir);
foreach ($files as $file) {
if ($file != "." && $file != "..") {
if ($file !== '' && $file !== "." && $file !== "..") {
self::rmdirr("$dir/$file");
}
}