aboutsummaryrefslogtreecommitdiffstats
path: root/apps/lookup_server_connector
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-04-09 12:28:06 +0200
committerJoas Schilling <coding@schilljs.com>2019-04-09 13:22:31 +0200
commit541e15db1194be88895757511d017a27c0b47972 (patch)
tree103d38830162980c2aee58e490a1eab86e3b44e0 /apps/lookup_server_connector
parentec4b1584fe46df81e3eda1ff374f575d153a966f (diff)
downloadnextcloud-server-541e15db1194be88895757511d017a27c0b47972.tar.gz
nextcloud-server-541e15db1194be88895757511d017a27c0b47972.zip
Only update the lookup server if it is enabled AND a server is set
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/lookup_server_connector')
-rw-r--r--apps/lookup_server_connector/lib/UpdateLookupServer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/lookup_server_connector/lib/UpdateLookupServer.php b/apps/lookup_server_connector/lib/UpdateLookupServer.php
index f96b3d787f2..75da45dce2f 100644
--- a/apps/lookup_server_connector/lib/UpdateLookupServer.php
+++ b/apps/lookup_server_connector/lib/UpdateLookupServer.php
@@ -165,7 +165,7 @@ class UpdateLookupServer {
* @return bool
*/
private function shouldUpdateLookupServer() {
- return $this->lookupServerEnabled || !empty($this->lookupServer);
+ return $this->lookupServerEnabled && !empty($this->lookupServer);
}
}