summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-02-29 22:44:40 +0100
committerLukas Reschke <lukas@owncloud.com>2016-02-29 22:44:40 +0100
commit88fc5149eddcbeaf41358c0eb56be45ad2c94a59 (patch)
treefc9f7d35cf202c0e827c98c821409c6c503b7fb4
parent59028cced0a4f7377de9c22012c7624440b14a56 (diff)
downloadnextcloud-server-88fc5149eddcbeaf41358c0eb56be45ad2c94a59.tar.gz
nextcloud-server-88fc5149eddcbeaf41358c0eb56be45ad2c94a59.zip
Fix Scrutinizer issues
-rw-r--r--apps/federatedfilesharing/lib/discoverymanager.php2
-rw-r--r--apps/files_sharing/ajax/external.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/lib/discoverymanager.php b/apps/federatedfilesharing/lib/discoverymanager.php
index 1df510438d7..51ea71195fa 100644
--- a/apps/federatedfilesharing/lib/discoverymanager.php
+++ b/apps/federatedfilesharing/lib/discoverymanager.php
@@ -104,7 +104,9 @@ class DiscoveryManager {
}
}
} catch (ClientException $e) {
+ // Don't throw any exception since exceptions are handled before
} catch (ConnectException $e) {
+ // Don't throw any exception since exceptions are handled before
}
// Write into cache
diff --git a/apps/files_sharing/ajax/external.php b/apps/files_sharing/ajax/external.php
index 2e963d55491..76f9d5d7668 100644
--- a/apps/files_sharing/ajax/external.php
+++ b/apps/files_sharing/ajax/external.php
@@ -67,6 +67,7 @@ $externalManager = new \OCA\Files_Sharing\External\Manager(
\OC\Files\Filesystem::getLoader(),
\OC::$server->getHTTPHelper(),
\OC::$server->getNotificationManager(),
+ $discoveryManager,
\OC::$server->getUserSession()->getUser()->getUID()
);