From 8cbc9ee7a46392960f88a81c4643a71b8820d838 Mon Sep 17 00:00:00 2001 From: Alexander Purr <purr@ub.uni-leipzig.de> Date: Fri, 12 Feb 2021 18:26:17 +0100 Subject: [PATCH] refs #19139 [fid_adlr] cast to array to prevent "Invalid argument supplied for foreach()" on null --- themes/fid_adlr/templates/RecordTab/staffviewai.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/fid_adlr/templates/RecordTab/staffviewai.phtml b/themes/fid_adlr/templates/RecordTab/staffviewai.phtml index b0f10f828cb..55fb5e4109b 100644 --- a/themes/fid_adlr/templates/RecordTab/staffviewai.phtml +++ b/themes/fid_adlr/templates/RecordTab/staffviewai.phtml @@ -2,7 +2,7 @@ <?php ?> <table class="citation table table-striped"> - <?php foreach ($this->driver->getAIRecord() as $field => $values): ?> + <?php foreach ((array)$this->driver->getAIRecord() as $field => $values): ?> <tr> <th><?=$this->escapeHtml($field)?></th> <td> -- GitLab