Merge pull request #14325 from nextcloud/fix/always_query_lookup_server_in_gs_mode

Always query lookup server in GS mode
This commit is contained in:
Roeland Jago Douma 2019-02-25 10:23:40 +01:00 committed by GitHub
commit 0a576459a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class LookupPlugin implements ISearchPlugin {
$hasInternetConnection = (bool)$this->config->getSystemValue('has_internet_connection', true);
// if case of Global Scale we always search the lookup server
if ((!$isLookupServerEnabled && !$isGlobalScaleEnabled) || !$hasInternetConnection) {
if (!$isGlobalScaleEnabled && (!$isLookupServerEnabled || !$hasInternetConnection)) {
return false;
}