From 385e0d4a66b58223b96dbd201619f9ccfb9310ad Mon Sep 17 00:00:00 2001
From: Dorian Merz <merz@ub.uni-leipzig.de>
Date: Tue, 3 Sep 2019 10:55:16 +0200
Subject: [PATCH] refs #15206 [fid_bbi] hotfix for single valued imprint lines

---
 .../templates/RecordDriver/DefaultRecord/result-list.phtml      | 2 +-
 themes/fid_bbi/templates/RecordDriver/SolrAI/result-list.phtml  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/themes/fid_bbi/templates/RecordDriver/DefaultRecord/result-list.phtml b/themes/fid_bbi/templates/RecordDriver/DefaultRecord/result-list.phtml
index 11c3d45d788..4b26e52d148 100644
--- a/themes/fid_bbi/templates/RecordDriver/DefaultRecord/result-list.phtml
+++ b/themes/fid_bbi/templates/RecordDriver/DefaultRecord/result-list.phtml
@@ -132,7 +132,7 @@ $i = 0;
       <?php endif; ?>
 
         <?php /* imprint data, #15206, DM*/
-        $imprintLines = $this->driver->tryMethod('getImprint');
+        $imprintLines = (array) $this->driver->tryMethod('getImprint');
         if (!empty($imprintLines)):
             ?>
             <!-- imprint -->
diff --git a/themes/fid_bbi/templates/RecordDriver/SolrAI/result-list.phtml b/themes/fid_bbi/templates/RecordDriver/SolrAI/result-list.phtml
index 55d17a587f2..95735b13637 100644
--- a/themes/fid_bbi/templates/RecordDriver/SolrAI/result-list.phtml
+++ b/themes/fid_bbi/templates/RecordDriver/SolrAI/result-list.phtml
@@ -182,7 +182,7 @@ if ($cover):
       <?php endif; ?>
 
         <?php /* imprint data, #15206, DM*/
-        $imprintLines = $this->driver->tryMethod('getImprint');
+        $imprintLines = (array) $this->driver->tryMethod('getImprint');
         if (!empty($imprintLines)):
             ?>
             <!-- imprint -->
-- 
GitLab