Skip to content

Commit

Permalink
Account for NULL value
Browse files Browse the repository at this point in the history
in00001878034 is a test record
  • Loading branch information
doug-hahn committed Nov 2, 2023
1 parent ac838a2 commit d06d85c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion module/VuFind/src/VuFind/ILS/Logic/Holds.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,13 @@ protected function getRequestDetails($details, $HMACKeys, $action)
foreach ($details as $key => $param) {
$needle = in_array($key, $HMACKeys);
if ($needle) {
$queryString[] = $key . "=" . urlencode($param);
// This record in00001878034 fails here with a null
// dch
if (is_null($param)) {
$queryString[] = $key . "=";
} else {
$queryString[] = $key . "=" . urlencode($param);
}
}
}

Expand Down

0 comments on commit d06d85c

Please sign in to comment.