summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2016-04-12 17:26:09 +0200
committerBjörn Schießle <schiessle@owncloud.com>2016-04-12 17:26:09 +0200
commitf17ad1886527b7dc4d493a1012c2bb7945bbe80f (patch)
treef97047dc161f3385e5114560c8fbfc1adff229b6 /lib
parente9a9af3493caa7e839e18cda0c8ea2d8dd7bfd22 (diff)
downloadnextcloud-server-f17ad1886527b7dc4d493a1012c2bb7945bbe80f.tar.gz
nextcloud-server-f17ad1886527b7dc4d493a1012c2bb7945bbe80f.zip
set $share to null if getShareByToken() failed
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index af846b9283c..6f2efe167d4 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -979,7 +979,7 @@ class Manager implements IManager {
try {
$share = $provider->getShareByToken($token);
} catch (ShareNotFound $e) {
- //Ignore
+ $share = null;
}
// If it is not a link share try to fetch a federated share by token