set $share to null if getShareByToken() failed

This commit is contained in:
Björn Schießle 2016-04-12 17:26:09 +02:00
parent e9a9af3493
commit f17ad18865
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 1 additions and 1 deletions

View File

@ -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