]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Handle empty configuration 3101/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 10 May 2017 08:37:53 +0000 (10:37 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 10 May 2017 08:37:53 +0000 (10:37 +0200)
src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php

index a16ed49d9b478fb3042a35a4fad77a4fb418e35c..c712bb26e2de7c66f487132da00e63e8c718d463 100644 (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;