summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-05-10 21:06:45 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-05-10 21:06:45 -0400
commitdaff3aa667585ae63a91cb5f1f801ad808d4f1ab (patch)
tree43f3eeedf94f8f04dbbc59bf5b11617b891af2bb /apps
parent60103d9b94703255d2700f6f9fbfd2f606be7d7f (diff)
downloadnextcloud-server-daff3aa667585ae63a91cb5f1f801ad808d4f1ab.tar.gz
nextcloud-server-daff3aa667585ae63a91cb5f1f801ad808d4f1ab.zip
Prevent overwriting of private link status
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/ajax/getstatuses.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/ajax/getstatuses.php b/apps/files_sharing/ajax/getstatuses.php
index c1892e7e2a2..8edcb214758 100644
--- a/apps/files_sharing/ajax/getstatuses.php
+++ b/apps/files_sharing/ajax/getstatuses.php
@@ -14,7 +14,7 @@ if ($rows = OC_Share::getMySharedItems()) {
$item = substr($source, $dirLength);
if ($rows[$i]['uid_shared_with'] == OC_Share::PUBLICLINK) {
$items[$item] = true;
- } else {
+ } else if (!isset($items[$item])) {
$items[$item] = false;
}
}