]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only update the lookup server if it is enabled AND a server is set 15022/head
authorJoas Schilling <coding@schilljs.com>
Tue, 9 Apr 2019 10:28:06 +0000 (12:28 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 9 Apr 2019 11:22:31 +0000 (13:22 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/lookup_server_connector/lib/UpdateLookupServer.php

index f96b3d787f2970cec3201f94cf8e3d0aea789e62..75da45dce2fdc54498d62574f11a93fdb1a24505 100644 (file)
@@ -165,7 +165,7 @@ class UpdateLookupServer {
         * @return bool
         */
        private function shouldUpdateLookupServer() {
-               return $this->lookupServerEnabled || !empty($this->lookupServer);
+               return $this->lookupServerEnabled && !empty($this->lookupServer);
        }
 
 }