diff --git a/module/VuFind/src/VuFind/ILS/Logic/TitleHolds.php b/module/VuFind/src/VuFind/ILS/Logic/TitleHolds.php index 191baaed745d9b54eb5385d1555dccb887fbdfe5..aa9a33fb68552df5072dc9e65a0bf71fc85df289 100644 --- a/module/VuFind/src/VuFind/ILS/Logic/TitleHolds.php +++ b/module/VuFind/src/VuFind/ILS/Logic/TitleHolds.php @@ -120,13 +120,13 @@ class TitleHolds } else if ($mode == 'driver') { try { $patron = $this->ilsAuth->storedCatalogLogin(); + if (!$patron) { + return false; + } + return $this->driverHold($id, $patron); } catch (ILSException $e) { return false; } - if (!$patron) { - return false; - } - return $this->driverHold($id, $patron); } else { try { $patron = $this->ilsAuth->storedCatalogLogin();