Only update the lookup server if it is enabled AND a server is set

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/15020/head
Joas Schilling 7 years ago
parent ca0b70eb2f
commit 0948ab721b
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 2
      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);
}
}

Loading…
Cancel
Save