diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2016-06-09 17:41:57 +0200 |
---|---|---|
committer | blizzz <blizzz@arthur-schiwon.de> | 2016-06-09 17:41:57 +0200 |
commit | 51fd2602a77d8d885c53d24ebb8f72be62dc52ce (patch) | |
tree | 2c38e740669ab2fa6ab50615187d01b9d6dc00d1 /lib/private/legacy | |
parent | b688aac402cf9d7ee08252077d37ea1c43b22f4a (diff) | |
download | nextcloud-server-51fd2602a77d8d885c53d24ebb8f72be62dc52ce.tar.gz nextcloud-server-51fd2602a77d8d885c53d24ebb8f72be62dc52ce.zip |
Revert "Downstream 2016-06-08"
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/helper.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php index 21fb3cbc5ab..f107d47faf7 100644 --- a/lib/private/legacy/helper.php +++ b/lib/private/legacy/helper.php @@ -206,9 +206,7 @@ class OC_Helper { foreach ($files as $fileInfo) { /** @var SplFileInfo $fileInfo */ - if ($fileInfo->isLink()) { - unlink($fileInfo->getPathname()); - } else if ($fileInfo->isDir()) { + if ($fileInfo->isDir()) { rmdir($fileInfo->getRealPath()); } else { unlink($fileInfo->getRealPath()); |