From daff3aa667585ae63a91cb5f1f801ad808d4f1ab Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Thu, 10 May 2012 21:06:45 -0400 Subject: [PATCH] Prevent overwriting of private link status --- apps/files_sharing/ajax/getstatuses.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.5