From: Björn Schießle Date: Thu, 4 Oct 2012 09:18:37 +0000 (+0200) Subject: share.expiration is null if no expiration date is set. X-Git-Tag: v4.5.0RC3~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=16eade5a3b2c38d25dea16da027222cc122b5c6a;p=nextcloud-server.git share.expiration is null if no expiration date is set. --- diff --git a/core/js/share.js b/core/js/share.js index 43688ba270e..75448bfe208 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); } });