From: Jeremy Benoist Date: Wed, 10 May 2017 08:37:53 +0000 (+0200) Subject: Handle empty configuration X-Git-Tag: 2.3.0~31^2~99^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=150d9ec1dcca0f71ba19a7f55e599eb716541dc3;p=github%2Fwallabag%2Fwallabag.git Handle empty configuration --- diff --git a/src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php b/src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php index a16ed49d..c712bb26 100644 --- a/src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php +++ b/src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php @@ -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;