Skip to content

Commit

Permalink
[BUGFIX] prevent empty array key if foreignLabelField is null
Browse files Browse the repository at this point in the history
  • Loading branch information
clickstorm authored and dkd-kaehm committed Nov 2, 2023
1 parent 4303220 commit ae6381b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ContentObject/Relation.php
Expand Up @@ -170,7 +170,7 @@ protected function getRelatedItemsFromMMTable(string $localTableName, int $local
&& !empty($this->configuration['enableRecursiveValueResolution'])
) {
$this->configuration['localField'] = $foreignTableLabelField;
if (str_contains($this->configuration['foreignLabelField'], '.')) {
if (str_contains($this->configuration['foreignLabelField'] ?? '', '.')) {
$foreignTableLabelFieldArr = explode('.', $this->configuration['foreignLabelField']);
unset($foreignTableLabelFieldArr[0]);
$this->configuration['foreignLabelField'] = implode('.', $foreignTableLabelFieldArr);
Expand Down

0 comments on commit ae6381b

Please sign in to comment.