From 6120f7f8fbf42d40a43005699244147d8e68b947 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Tue, 5 Apr 2016 10:49:39 -0400 Subject: [PATCH] Work around ILS outages. --- .../VuFind/src/VuFind/ILS/Driver/MultiBackend.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php index 24678c7037d..5dd56520f21 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php +++ b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php @@ -65,10 +65,10 @@ class MultiBackend extends AbstractBase * @var string */ protected $defaultDriver; - + /** * The path to the driver configurations relative to the config path - * + * * @var string */ protected $driversConfigPath; @@ -1177,9 +1177,13 @@ class MultiBackend extends AbstractBase $source = $this->getSourceFromParams($params); } if (!$source) { - $patron = $this->ilsAuth->storedCatalogLogin(); - if ($patron && isset($patron['cat_username'])) { - $source = $this->getSource($patron['cat_username']); + try { + $patron = $this->ilsAuth->storedCatalogLogin(); + if ($patron && isset($patron['cat_username'])) { + $source = $this->getSource($patron['cat_username']); + } + } catch (ILSException $e) { + return []; } } -- GitLab