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

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-04-09 12:28:06 +02:00
parent ca0b70eb2f
commit 0948ab721b
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

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