share.expiration is null if no expiration date is set.

remotes/origin/stable45
Björn Schießle 12 years ago
parent 5c042d88ad
commit 16eade5a3b
  1. 2
      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);
}
});

Loading…
Cancel
Save