Skip to content

Commit

Permalink
Fix #16022 - Uncaught TypeError on browse foreigners
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Mar 8, 2020
1 parent a6e0d7f commit 06707d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/classes/BrowseForeigners.php
Expand Up @@ -238,7 +238,7 @@ public function getHtmlForRelationalFieldSelection(
$keys = [];
foreach ($foreignData['disp_row'] as $relrow) {
if ($foreignData['foreign_display'] != false) {
$descriptions[] = $relrow[$foreignData['foreign_display']];
$descriptions[] = $relrow[$foreignData['foreign_display']] ?? '';
} else {
$descriptions[] = '';
}
Expand Down

0 comments on commit 06707d8

Please sign in to comment.