summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-28 17:39:29 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-28 17:49:16 +0200
commitbe23f7e1de6bd92911cbc6e37df14e015610bdfe (patch)
tree86a23fc36107eeeefef518179a4b078ccb3eb4a9 /apps
parent8e4085526d071b8d6032277b02c700b7cac04cc9 (diff)
downloadnextcloud-server-be23f7e1de6bd92911cbc6e37df14e015610bdfe.tar.gz
nextcloud-server-be23f7e1de6bd92911cbc6e37df14e015610bdfe.zip
Allow the expiration date to be set to null
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index 836f230290c..c88c2fdd0f3 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -377,7 +377,7 @@ class ShareByMailProvider implements IShareProvider {
$link,
$initiator,
$shareWith,
- $expiration) {
+ \DateTime $expiration = null) {
$initiatorUser = $this->userManager->get($initiator);
$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
$subject = (string)$this->l->t('%s shared »%s« with you', array($initiatorDisplayName, $filename));