diff --git a/module/VuFind/src/VuFind/View/Helper/Root/Auth.php b/module/VuFind/src/VuFind/View/Helper/Root/Auth.php index 958580bd340bdaa2169a5cd12c1a4fa8f8c16d1d..91f9db39f2cd7f73e9689154782d3bfbec72c6c9 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/Auth.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/Auth.php @@ -27,6 +27,7 @@ */ namespace VuFind\View\Helper\Root; +use VuFind\Exception\ILS as ILSException; use Zend\View\Exception\RuntimeException; /** @@ -152,7 +153,11 @@ class Auth extends \Zend\View\Helper\AbstractHelper */ public function getILSPatron() { - return $this->ilsAuthenticator->storedCatalogLogin(); + try { + return $this->ilsAuthenticator->storedCatalogLogin(); + } catch (ILSException $e) { + return false; + } } /**