From 88fc5149eddcbeaf41358c0eb56be45ad2c94a59 Mon Sep 17 00:00:00 2001
From: Lukas Reschke <lukas@owncloud.com>
Date: Mon, 29 Feb 2016 22:44:40 +0100
Subject: [PATCH] Fix Scrutinizer issues

---
 apps/federatedfilesharing/lib/discoverymanager.php | 2 ++
 apps/files_sharing/ajax/external.php               | 1 +
 2 files changed, 3 insertions(+)

diff --git a/apps/federatedfilesharing/lib/discoverymanager.php b/apps/federatedfilesharing/lib/discoverymanager.php
index 1df510438d..51ea71195f 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 2e963d5549..76f9d5d766 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()
 );
 
-- 
GitLab