From 16eade5a3b2c38d25dea16da027222cc122b5c6a Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Thu, 4 Oct 2012 11:18:37 +0200 Subject: share.expiration is null if no expiration date is set. --- core/js/share.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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); } }); -- cgit v1.2.3