Respect the setting if the lookup server is disabled

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-04-09 13:20:22 +02:00
parent 24bc923323
commit a596eb2d0d
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);
}
}