diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-23 13:31:45 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-05-23 13:31:45 +0200 |
commit | be8326668aa29170b93570036936d174247cdbeb (patch) | |
tree | a7778734ebc48597b68ba24f969284dce6cc84ee | |
parent | 71e1d919de274e30aa043dc6cae67d4e993b2f26 (diff) | |
download | nextcloud-server-be8326668aa29170b93570036936d174247cdbeb.tar.gz nextcloud-server-be8326668aa29170b93570036936d174247cdbeb.zip |
Make the recursive delete more robust
-rw-r--r-- | lib/private/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php index 4ad792dfb13..e9ca036a32c 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -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"); } } |