]> source.dussan.org Git - nextcloud-server.git/commitdiff
share.expiration is null if no expiration date is set.
authorBjörn Schießle <schiessle@owncloud.com>
Thu, 4 Oct 2012 09:18:37 +0000 (11:18 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Thu, 4 Oct 2012 09:18:37 +0000 (11:18 +0200)
core/js/share.js

index 43688ba270eb366a43e7510698ee715a6fdf2287..75448bfe20831efe9bd75b413f83e4e4d5e7c345 100644 (file)
@@ -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);
                                        }
                                });