diff --git a/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php b/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php index e9b0f7089b2c9255de78c62b59e5160fb5d346bc..0359cc7014085636889d5af88dd41aa2f0333257 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php +++ b/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php @@ -669,7 +669,6 @@ class VoyagerRestful extends Voyager implements \VuFindHttp\HttpServiceAwareInte public function renewMyItems($renewDetails) { $renewProcessed = array(); - $renewResult = array(); $failIDs = array(); $patronId = $renewDetails['patron']['id']; @@ -727,7 +726,7 @@ class VoyagerRestful extends Voyager implements \VuFindHttp\HttpServiceAwareInte } } // Deal with unsuccessful results - foreach ($failIDs as $id => $junk) { + foreach (array_keys($failIDs) as $id) { $finalResult['details'][$id] = array( "success" => false, "new_date" => false,