diff --git a/core/js/share.js b/core/js/share.js index 43688ba270..75448bfe20 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -166,7 +166,7 @@ OC.Share={ OC.Share.addShareWith(share.share_type, share.share_with, share.permissions, possiblePermissions, false); } } - if (share.expiration.length > 0) { + if (share.expiration != null) { OC.Share.showExpirationDate(share.expiration); } });