From 2f9ef15d864428ea3b399cd9b98cf63788f94e7d Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Mon, 26 Nov 2018 17:40:47 +0200 Subject: [PATCH] Fix calls to compact(). (#1273) --- module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php | 2 +- module/VuFind/src/VuFind/ILS/Logic/Holds.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php index 2f76b21cac6..55833858bc7 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php +++ b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php @@ -1132,7 +1132,7 @@ class MultiBackend extends AbstractBase implements \Zend\Log\LoggerAwareInterfac $source = $this->getSource($details['id']); $driver = $this->getDriver($source); if ($driver - && $this->methodSupported($driver, 'placeILLRequest', compact($details)) + && $this->methodSupported($driver, 'placeILLRequest', compact('details')) ) { // Patron is not stripped so that the correct library can be determined $details = $this->stripIdPrefixes($details, $source, ['id'], ['patron']); diff --git a/module/VuFind/src/VuFind/ILS/Logic/Holds.php b/module/VuFind/src/VuFind/ILS/Logic/Holds.php index c5d4c6bc1f3..7455a096087 100644 --- a/module/VuFind/src/VuFind/ILS/Logic/Holds.php +++ b/module/VuFind/src/VuFind/ILS/Logic/Holds.php @@ -209,7 +209,7 @@ class Holds $grb = 'getRequestBlocks'; // use variable to shorten line below: $blocks - = $patron && $this->catalog->checkCapability($grb, compact($patron)) + = $patron && $this->catalog->checkCapability($grb, compact('patron')) ? $this->catalog->getRequestBlocks($patron) : false; $mode = $this->catalog->getHoldsMode(); -- GitLab