summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-11-27 23:01:26 +0100
committerThomas Tanghus <thomas@tanghus.net>2012-11-27 23:01:26 +0100
commit5c9faf396a1afc1a35f2c922e2afb98e219f3abd (patch)
tree042d6a824379e52d65b60665cf3f0cb592488935
parentd251f04b98c3be9ecb6435af15628f0ccf09cfe3 (diff)
downloadnextcloud-server-5c9faf396a1afc1a35f2c922e2afb98e219f3abd.tar.gz
nextcloud-server-5c9faf396a1afc1a35f2c922e2afb98e219f3abd.zip
Sharing: Fix false positived v. 2
-rw-r--r--core/js/share.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 0f71ae22419..475abb58bff 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -146,7 +146,7 @@ OC.Share={
showDropDown:function(itemType, itemSource, appendTo, link, possiblePermissions) {
var data = OC.Share.loadItem(itemType, itemSource);
var html = '<div id="dropdown" class="drop" data-item-type="'+itemType+'" data-item-source="'+itemSource+'">';
- if (data.reshare) {
+ if (data !== false && data.reshare !== false && data.reshare.uid_owner !== undefined) {
if (data.reshare.share_type == OC.Share.SHARE_TYPE_GROUP) {
html += '<span class="reshare">'+t('core', 'Shared with you and the group {group} by {owner}', {group: data.reshare.share_with, owner: data.reshare.uid_owner})+'</span>';
} else {