From cc212b2a9abf8b77098fc4c98069dd2b746cc741 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 9 Aug 2017 10:33:18 -0400 Subject: [PATCH] Avoid notice. --- module/VuFind/src/VuFind/ILS/Logic/TitleHolds.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/module/VuFind/src/VuFind/ILS/Logic/TitleHolds.php b/module/VuFind/src/VuFind/ILS/Logic/TitleHolds.php index 55782b30bdd..3d8ed1c8a40 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) -- GitLab