Skip to content
Snippets Groups Projects
Commit 2f9ef15d authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Fix calls to compact(). (#1273)

parent d1b9a186
Branches
Tags
No related merge requests found
...@@ -1132,7 +1132,7 @@ class MultiBackend extends AbstractBase implements \Zend\Log\LoggerAwareInterfac ...@@ -1132,7 +1132,7 @@ class MultiBackend extends AbstractBase implements \Zend\Log\LoggerAwareInterfac
$source = $this->getSource($details['id']); $source = $this->getSource($details['id']);
$driver = $this->getDriver($source); $driver = $this->getDriver($source);
if ($driver 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 // Patron is not stripped so that the correct library can be determined
$details = $this->stripIdPrefixes($details, $source, ['id'], ['patron']); $details = $this->stripIdPrefixes($details, $source, ['id'], ['patron']);
......
...@@ -209,7 +209,7 @@ class Holds ...@@ -209,7 +209,7 @@ class Holds
$grb = 'getRequestBlocks'; // use variable to shorten line below: $grb = 'getRequestBlocks'; // use variable to shorten line below:
$blocks $blocks
= $patron && $this->catalog->checkCapability($grb, compact($patron)) = $patron && $this->catalog->checkCapability($grb, compact('patron'))
? $this->catalog->getRequestBlocks($patron) : false; ? $this->catalog->getRequestBlocks($patron) : false;
$mode = $this->catalog->getHoldsMode(); $mode = $this->catalog->getHoldsMode();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment