diff options
author | dartcafe <github@dartcafe.de> | 2021-05-27 00:19:33 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-05-27 00:19:33 +0300 |
commit | 5e098126436aa7f48e9f089115da82d2c003fb68 (patch) | |
tree | 78407a6dd8036da27cffc0b05f03dc606e83b80e /lib/Service/ShareService.php | |
parent | 895746bc43285071199c27319b0ad148e715f1d8 (diff) |
fix #1559
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib/Service/ShareService.php')
-rw-r--r-- | lib/Service/ShareService.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Service/ShareService.php b/lib/Service/ShareService.php index 496ecf23..9ad3c3e6 100644 --- a/lib/Service/ShareService.php +++ b/lib/Service/ShareService.php @@ -331,9 +331,13 @@ class ShareService { throw new NotAuthorizedException; } - // send invitaitoin mail, if invitationSent has no timestamp - if (!$this->share->getInvitationSent()) { - $this->mailService->resendInvitation($this->share->getToken()); + // send invitation mail, if invitationSent has no timestamp + try { + if (!$this->share->getInvitationSent()) { + $this->mailService->resendInvitation($this->share->getToken()); + } + } catch (\Exception $e) { + $this->logger->error('Error sending Mail to ' . $this->share->getEmailAddress()); } return $this->share; |