diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-07-18 20:38:40 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-07-19 10:28:11 +0200 |
commit | d8ec3994542d238f9d679d6c426c14caf6ba6450 (patch) | |
tree | d418b14313b2b45ab4456e0ebaacda96536786e3 /apps/sharebymail/lib | |
parent | 0ee83ac56bb7390899699f230f7e022f00d4042e (diff) | |
download | nextcloud-server-d8ec3994542d238f9d679d6c426c14caf6ba6450.tar.gz nextcloud-server-d8ec3994542d238f9d679d6c426c14caf6ba6450.zip |
Run phan over code base
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/sharebymail/lib')
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index f4db83ea3cf..e584464dbff 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -24,6 +24,7 @@ namespace OCA\ShareByMail; use OC\CapabilitiesManager; use OC\HintException; use OC\Share20\Exception\InvalidShare; +use OC\User\NoUserException; use OCA\ShareByMail\Settings\SettingsManager; use OCP\Activity\IManager; use OCP\DB\QueryBuilder\IQueryBuilder; @@ -923,7 +924,7 @@ class ShareByMailProvider implements IShareProvider { private function getNode($userId, $id) { try { $userFolder = $this->rootFolder->getUserFolder($userId); - } catch (NotFoundException $e) { + } catch (NoUserException $e) { throw new InvalidShare(); } |