summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2021-04-12 22:53:34 +0200
committerJ0WI <J0WI@users.noreply.github.com>2021-04-12 22:54:50 +0200
commit74a7c2eefc60f6cb08f8a04ed6f785d8177d3a63 (patch)
treeeb25ea2a2f20c866542c45a916f19e6efa5ce116 /lib/private/Collaboration
parent4be2e1601e80a09aebac57eabb0aaf60e744362e (diff)
downloadnextcloud-server-74a7c2eefc60f6cb08f8a04ed6f785d8177d3a63.tar.gz
nextcloud-server-74a7c2eefc60f6cb08f8a04ed6f785d8177d3a63.zip
Use correct getSystemValue type
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Collaborators/LookupPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php
index 974254e9a3f..f675cece99e 100644
--- a/lib/private/Collaboration/Collaborators/LookupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/LookupPlugin.php
@@ -66,7 +66,7 @@ class LookupPlugin implements ISearchPlugin {
public function search($search, $limit, $offset, ISearchResult $searchResult) {
$isGlobalScaleEnabled = $this->config->getSystemValue('gs.enabled', false);
$isLookupServerEnabled = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'yes') === 'yes';
- $hasInternetConnection = (bool)$this->config->getSystemValue('has_internet_connection', true);
+ $hasInternetConnection = $this->config->getSystemValueBool('has_internet_connection', true);
// if case of Global Scale we always search the lookup server
if (!$isGlobalScaleEnabled && (!$isLookupServerEnabled || !$hasInternetConnection)) {