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

This commit is contained in:
Björn Schießle 2012-10-04 11:18:37 +02:00
parent 5c042d88ad
commit 16eade5a3b
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ OC.Share={
OC.Share.addShareWith(share.share_type, share.share_with, share.permissions, possiblePermissions, false); 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); OC.Share.showExpirationDate(share.expiration);
} }
}); });