Skip to content
Snippets Groups Projects
Commit 6120f7f8 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Work around ILS outages.

parent 6386593e
Branches
Tags
No related merge requests found
......@@ -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 [];
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment