Handle empty configuration

This commit is contained in:
Jeremy Benoist 2017-05-10 10:37:53 +02:00
parent 147cae223b
commit 150d9ec1dc
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C

View file

@ -54,7 +54,7 @@ class GrabySiteConfigBuilder implements SiteConfigBuilder
$host = substr($host, 4);
}
if (!isset($this->credentials[$host])) {
if (empty($this->credentials[$host])) {
$this->logger->debug('Auth: no credentials available for host.', ['host' => $host]);
return false;