aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federation/lib/Controller/SettingsController.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federation/lib/Controller/SettingsController.php')
-rw-r--r--apps/federation/lib/Controller/SettingsController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/federation/lib/Controller/SettingsController.php b/apps/federation/lib/Controller/SettingsController.php
index 8abc2f8af57..8bcdc769de9 100644
--- a/apps/federation/lib/Controller/SettingsController.php
+++ b/apps/federation/lib/Controller/SettingsController.php
@@ -78,7 +78,7 @@ class SettingsController extends Controller {
* @AuthorizedAdminSetting(settings=OCA\Federation\Settings\Admin)
* @throws HintException
*/
- protected function checkServer(string $url): void {
+ protected function checkServer(string $url): bool {
if ($this->trustedServers->isTrustedServer($url) === true) {
$message = 'Server is already in the list of trusted servers.';
$hint = $this->l->t('Server is already in the list of trusted servers.');
@@ -90,5 +90,7 @@ class SettingsController extends Controller {
$hint = $this->l->t('No server to federate with found');
throw new HintException($message, $hint);
}
+
+ return true;
}
}