summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-05-26 11:06:13 +0200
committerVincent Petry <pvince81@owncloud.com>2014-05-26 11:06:13 +0200
commita34491e28895f84d220cb5dbbbe4273172334716 (patch)
treee3d97036cdd1123f1442908bb955cb575f783892
parent48d0cebc42e98e3fe3fbb7c1b5b4fdc90db4cf2b (diff)
parentbe8326668aa29170b93570036936d174247cdbeb (diff)
downloadnextcloud-server-a34491e28895f84d220cb5dbbbe4273172334716.tar.gz
nextcloud-server-a34491e28895f84d220cb5dbbbe4273172334716.zip
Merge pull request #8687 from owncloud/recursive-remove-smb
Make the recursive delete more robust
-rw-r--r--lib/private/helper.php2
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");
}
}