summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-08-08 16:13:47 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-08-14 11:44:59 +0200
commit9a83dbec76230eb958468be6438f28f9086c0536 (patch)
tree50e0d10c1c0e2dd305a14f6671af982e757b7fcf /apps/files
parentbc1848933d2fcd23a10ae5af0058ad86aedcf035 (diff)
downloadnextcloud-server-9a83dbec76230eb958468be6438f28f9086c0536.tar.gz
nextcloud-server-9a83dbec76230eb958468be6438f28f9086c0536.zip
no special action for folder named 'Shared' needed
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/ajax/delete.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/delete.php b/apps/files/ajax/delete.php
index a28b7b76c95..196bccea0f6 100644
--- a/apps/files/ajax/delete.php
+++ b/apps/files/ajax/delete.php
@@ -26,7 +26,7 @@ $success = true;
//Now delete
foreach ($files as $file) {
- if (($dir === '' && $file === 'Shared') || !\OC\Files\Filesystem::unlink($dir . '/' . $file)) {
+ if (!\OC\Files\Filesystem::unlink($dir . '/' . $file)) {
$filesWithError .= $file . "\n";
$success = false;
}