From 850a31781db2db6c3ec7595e973cc46bde772582 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Lahmann?= <lahmann@ub.uni-leipzig.de>
Date: Wed, 26 Oct 2016 12:19:05 +0200
Subject: [PATCH] refs #8993: * fixed php error in getAlternativeItemId()

---
 module/finc/src/finc/ILS/Driver/FincILS.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/module/finc/src/finc/ILS/Driver/FincILS.php b/module/finc/src/finc/ILS/Driver/FincILS.php
index 6f4cfbf6598..e2c75cf9a7b 100644
--- a/module/finc/src/finc/ILS/Driver/FincILS.php
+++ b/module/finc/src/finc/ILS/Driver/FincILS.php
@@ -350,7 +350,8 @@ class FincILS extends PAIA implements LoggerAwareInterface
      */
     protected function getAlternativeItemId($id, $idType = null)
     {
-        return $this->_getFincId(end(explode(":", $id)), $idType);
+        $array = explode(":", $id);
+        return $this->_getFincId(end($array), $idType);
     }
 
     /**
-- 
GitLab