From 66f80769ddaa09db2c14287c370f5d29485a97d6 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Fri, 5 Oct 2018 17:11:52 +0300 Subject: [PATCH] Add a missing array level to error responses from MultiBackend::getStatuses method, (#1240) --- module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php index eae0779b66a..2f76b21cac6 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php +++ b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php @@ -220,7 +220,9 @@ class MultiBackend extends AbstractBase implements \Zend\Log\LoggerAwareInterfac } catch (ILSException $e) { $statuses = array_map( function ($id) { - return ['id' => $id, 'error' => 'An error has occurred']; + return [ + ['id' => $id, 'error' => 'An error has occurred'] + ]; }, $localIds ); -- GitLab