From ea05bfba859447545559892ae3d5a93736ee2b12 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Thu, 12 Feb 2015 16:13:07 +0200 Subject: [PATCH] Changed MultiBackend supportsMethod() logic a bit so that if a source cannot be determined it is assumed that the method is supported. --- module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php index b83645dc619..d274556700e 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php +++ b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php @@ -1173,7 +1173,10 @@ class MultiBackend extends AbstractBase $source = $this->defaultDriver; } if (!$source) { - return false; + // If we can't determine the source, assume we are capable to handle + // the request. This might happen e.g. when the user hasn't yet done + // a catalog login. + return true; } $driver = $this->getDriver($source); -- GitLab