From 150d9ec1dcca0f71ba19a7f55e599eb716541dc3 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Wed, 10 May 2017 10:37:53 +0200 Subject: Handle empty configuration --- .../CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Wallabag/CoreBundle') 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; -- cgit v1.2.3