From 37e374bd647952cc4b60ebd6d01d8e3f5ee10264 Mon Sep 17 00:00:00 2001
From: Tom Misilo <misilot@fit.edu>
Date: Wed, 13 Apr 2016 10:50:39 -0400
Subject: [PATCH] Fixed issue where renewing item was not working

---
 module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php
index 067d5795ce5..fae4a12e6aa 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php
@@ -1239,7 +1239,7 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements
             $requestTimes[] = $end - $start;
             $renewable = false;
             foreach ($rsp2->{'AvailableFor'} as $service) {
-                if ($this->getField($service->{0}) == "loan renewal") {
+                if ($this->getField((string)$service) == "loan renewal") {
                     $renewable = true;
                 }
             }
-- 
GitLab