Skip to content

Commit 9deee38

Browse files
committed
[BUGFIX] Use correct fallback value for undefined array key warning
1 parent 5b3692f commit 9deee38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Utility/FrontendUtility.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ public static function isAllowedToEdit(array $settings, $mail): bool
120120
$feUserGroups,
121121
true
122122
);
123-
$usersSettings = GeneralUtility::trimExplode(',', $settings['edit']['feuser'] ?? [], true);
124-
$usergroupsSettings = GeneralUtility::trimExplode(',', $settings['edit']['fegroup'] ?? [], true);
123+
$usersSettings = GeneralUtility::trimExplode(',', $settings['edit']['feuser'] ?? '', true);
124+
$usergroupsSettings = GeneralUtility::trimExplode(',', $settings['edit']['fegroup'] ?? '', true);
125125

126126
// replace "_owner" with uid of owner in array with users
127127
if ($mail->getFeuser() !== null && is_numeric(array_search('_owner', $usersSettings))) {

0 commit comments

Comments
 (0)