From 91aaa9c201291a17e784c6766bc8098b94b12e2f Mon Sep 17 00:00:00 2001 From: Lionel Walter <lionel.walter@unibas.ch> Date: Mon, 3 Feb 2020 17:47:30 +0100 Subject: [PATCH] Avoid Array to String Conversion in Aleph driver (#1540) --- module/VuFind/src/VuFind/ILS/Driver/Aleph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Aleph.php b/module/VuFind/src/VuFind/ILS/Driver/Aleph.php index bbaf2c78b0d..32b6254abdf 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Aleph.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Aleph.php @@ -1076,7 +1076,7 @@ class Aleph extends AbstractBase implements \Zend\Log\LoggerAwareInterface, ], null, 'POST', null ); - $due = (string)$xml->xpath('//new-due-date'); + $due = (string)current($xml->xpath('//new-due-date')); $result[$id] = [ 'success' => true, 'new_date' => $this->parseDate($due) ]; -- GitLab