From 16eade5a3b2c38d25dea16da027222cc122b5c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Thu, 4 Oct 2012 11:18:37 +0200 Subject: [PATCH] share.expiration is null if no expiration date is set. --- core/js/share.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } });