diff --git a/module/VuFind/src/VuFind/ILS/Logic/TitleHolds.php b/module/VuFind/src/VuFind/ILS/Logic/TitleHolds.php index 55782b30bdd2f3bf01201d05e7c630168294928a..3d8ed1c8a40803ddd887582a174b134448d849df 100644 --- a/module/VuFind/src/VuFind/ILS/Logic/TitleHolds.php +++ b/module/VuFind/src/VuFind/ILS/Logic/TitleHolds.php @@ -205,12 +205,9 @@ class TitleHolds $checkHolds = $this->catalog->checkFunction( 'Holds', compact('id', 'patron') ); - $data = [ - 'id' => $id, - 'level' => 'title' - ]; - if ($checkHolds != false) { + if (isset($checkHolds['HMACKeys'])) { + $data = ['id' => $id, 'level' => 'title']; $result = $this->catalog->checkRequestIsValid($id, $data, $patron); if ((is_array($result) && $result['valid']) || (is_bool($result) && $result)