diff options
Diffstat (limited to 'core/ajax/share.php')
-rw-r--r-- | core/ajax/share.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index 2b41bd8a5da..75b749a5b07 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -41,7 +41,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo $shareType, $shareWith, $_POST['permissions'], - $_POST['itemSourceName'] + $_POST['itemSourceName'], + (!empty($_POST['expirationDate']) ? new \DateTime($_POST['expirationDate']) : null) ); if (is_string($token)) { |