Skip to content

Commit

Permalink
Update lib/private/Share20/Manager.php
Browse files Browse the repository at this point in the history
Co-authored-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Signed-off-by: F. E Noel Nfebe <fenn25.fn@gmail.com>
  • Loading branch information
nfebe and solracsf authored Jun 1, 2024
1 parent d6cd727 commit 1e53f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ protected function validateExpirationDateInternal(IShare $share) {

// If $expirationDate is falsy, noExpirationDate is true and expiration not enforced
// Then skip expiration date validation as null is accepted
if(!($share->getNoExpirationDate() && !$isEnforced)) {
if (!($share->getNoExpirationDate() && !$isEnforced)) {
if ($expirationDate != null) {
$expirationDate->setTimezone($this->dateTimeZone->getTimeZone());
$expirationDate->setTime(0, 0, 0);
Expand Down

0 comments on commit 1e53f8c

Please sign in to comment.