From 1e53f8c7e1e6acab8cc03b298cc1709aa266c968 Mon Sep 17 00:00:00 2001 From: "F. E Noel Nfebe" Date: Sat, 1 Jun 2024 14:39:34 +0100 Subject: [PATCH] Update lib/private/Share20/Manager.php Co-authored-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Signed-off-by: F. E Noel Nfebe --- lib/private/Share20/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index bd8df386f338e..ecd4ec68552f8 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -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);