summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2016-06-09 17:41:57 +0200
committerblizzz <blizzz@arthur-schiwon.de>2016-06-09 17:41:57 +0200
commit51fd2602a77d8d885c53d24ebb8f72be62dc52ce (patch)
tree2c38e740669ab2fa6ab50615187d01b9d6dc00d1 /lib/private/legacy
parentb688aac402cf9d7ee08252077d37ea1c43b22f4a (diff)
downloadnextcloud-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.php4
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());