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); $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]); $this->logger->debug('Auth: no credentials available for host.', ['host' => $host]);
return false; return false;